ai-functions 0.2.18 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import { generateSchema } from '../utils/schema';
5
5
  import { GPT } from './gpt';
6
6
  import { StreamingList } from './list';
7
7
  export const AI = (config = {}) => {
8
- const { model = 'gpt-4-turbo-preview', system, ...rest } = config;
8
+ const { model = 'gpt-4o', system, ...rest } = config;
9
9
  const openai = config.openai ?? new OpenAI(rest);
10
10
  const { gpt } = GPT(config);
11
11
  const { list } = StreamingList(config);
package/functions/ai.ts CHANGED
@@ -30,7 +30,7 @@ type AIFunctions<T = Record<string,string>> = Record<string, (
30
30
  >
31
31
 
32
32
  export const AI = (config: AIConfig = {}) => {
33
- const { model = 'gpt-4-turbo-preview', system, ...rest } = config
33
+ const { model = 'gpt-4o', system, ...rest } = config
34
34
  const openai = config.openai ?? new OpenAI(rest)
35
35
  const { gpt } = GPT(config)
36
36
  const { list } = StreamingList(config)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-functions",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Library for Developing and Managing AI Functions (including OpenAI GPT4 / GPT3.5)",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",
@@ -48,7 +48,7 @@
48
48
  "kafkajs": "^2.2.4",
49
49
  "lodash-es": "^4.17.21",
50
50
  "mongodb": "^6.2.0",
51
- "openai": "^4.26.0",
51
+ "openai": "^4.53.2",
52
52
  "p-queue": "^7.4.1",
53
53
  "partial-json-parser": "^1.2.2",
54
54
  "xstate": "^5.0.0-beta.40"