diff --git a/examples/abort-chat-completion.ts b/examples/abort-chat-completion.ts index f5f02da..c62e092 100644 --- a/examples/abort-chat-completion.ts +++ b/examples/abort-chat-completion.ts @@ -1,6 +1,6 @@ import 'dotenv/config'; -import { ChatModel, type Msg, MsgUtil } from '@dexaai/dexter/model'; +import { ChatModel, type Msg, MsgUtil } from '@dexaai/dexter'; /** * npx tsx examples/abort-chat-completion.ts diff --git a/examples/ai-function.ts b/examples/ai-function.ts index c158896..0091927 100644 --- a/examples/ai-function.ts +++ b/examples/ai-function.ts @@ -1,7 +1,7 @@ import 'dotenv/config'; +import { ChatModel, type Msg, MsgUtil } from '@dexaai/dexter'; import { createAIFunction } from '@dexaai/dexter/ai-function'; -import { ChatModel, type Msg, MsgUtil } from '@dexaai/dexter/model'; import { z } from 'zod'; /** diff --git a/examples/ai-runner-with-error.ts b/examples/ai-runner-with-error.ts index 48d7565..8c547fd 100644 --- a/examples/ai-runner-with-error.ts +++ b/examples/ai-runner-with-error.ts @@ -1,7 +1,7 @@ import 'dotenv/config'; +import { ChatModel, MsgUtil } from '@dexaai/dexter'; import { createAIFunction, createAIRunner } from '@dexaai/dexter/ai-function'; -import { ChatModel, MsgUtil } from '@dexaai/dexter/model'; import { z } from 'zod'; /** Get the weather for a given location. */ diff --git a/examples/ai-runner.ts b/examples/ai-runner.ts index 46cfca7..6bd4972 100644 --- a/examples/ai-runner.ts +++ b/examples/ai-runner.ts @@ -1,7 +1,7 @@ import 'dotenv/config'; +import { ChatModel, MsgUtil } from '@dexaai/dexter'; import { createAIFunction, createAIRunner } from '@dexaai/dexter/ai-function'; -import { ChatModel, MsgUtil } from '@dexaai/dexter/model'; import { z } from 'zod'; /** Get the weather for a given location. */ diff --git a/examples/caching-redis.ts b/examples/caching-redis.ts index 9a78a1f..dcae608 100644 --- a/examples/caching-redis.ts +++ b/examples/caching-redis.ts @@ -1,6 +1,6 @@ import 'dotenv/config'; -import { EmbeddingModel } from '@dexaai/dexter/model'; +import { EmbeddingModel } from '@dexaai/dexter'; import KeyvRedis from '@keyv/redis'; import Keyv from 'keyv'; diff --git a/examples/extract-people-names.ts b/examples/extract-people-names.ts index bab449c..b52baab 100644 --- a/examples/extract-people-names.ts +++ b/examples/extract-people-names.ts @@ -1,7 +1,7 @@ import 'dotenv/config'; +import { ChatModel } from '@dexaai/dexter'; import { createAIExtractFunction } from '@dexaai/dexter/ai-function'; -import { ChatModel } from '@dexaai/dexter/model'; import { z } from 'zod'; /** A function to extract people names from text. */ diff --git a/examples/with-telemetry.ts b/examples/with-telemetry.ts index e7f4366..8ee7751 100644 --- a/examples/with-telemetry.ts +++ b/examples/with-telemetry.ts @@ -1,7 +1,7 @@ import './instrument.js'; import 'dotenv/config'; -import { ChatModel } from '@dexaai/dexter/model'; +import { ChatModel } from '@dexaai/dexter'; import * as Sentry from '@sentry/node'; const chatModel = new ChatModel({ diff --git a/package.json b/package.json index 81ca508..0a71a32 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ }, "exports": { "./package.json": "./package.json", + ".": { + "types": "./dist/model/index.d.ts", + "import": "./dist/model/index.js" + }, "./ai-function": { "types": "./dist/ai-function/index.d.ts", "import": "./dist/ai-function/index.js" - }, - "./model": { - "types": "./dist/model/index.d.ts", - "import": "./dist/model/index.js" } }, "sideEffects": false,