Skip to content

Commit

Permalink
Move @dexaai/dexter/model exports to package root
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek committed Oct 13, 2024
1 parent b7ea3fa commit d4cb343
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/abort-chat-completion.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ai-function.ts
Original file line number Diff line number Diff line change
@@ -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';

/**
Expand Down
2 changes: 1 addition & 1 deletion examples/ai-runner-with-error.ts
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion examples/ai-runner.ts
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion examples/caching-redis.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion examples/extract-people-names.ts
Original file line number Diff line number Diff line change
@@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion examples/with-telemetry.ts
Original file line number Diff line number Diff line change
@@ -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({
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d4cb343

Please sign in to comment.