Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/openai

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/openai - npm Package Compare versions

Comparing version 0.0.46 to 0.0.47

12

./dist/index.js

@@ -335,5 +335,5 @@ "use strict";

description: mode.tool.description,
parameters: mode.tool.parameters
},
strict: this.settings.structuredOutputs === true ? true : void 0
parameters: mode.tool.parameters,
strict: this.settings.structuredOutputs === true ? true : void 0
}
}

@@ -705,5 +705,5 @@ ]

description: tool.description,
parameters: tool.parameters
},
strict: structuredOutputs === true ? true : void 0
parameters: tool.parameters,
strict: structuredOutputs === true ? true : void 0
}
}));

@@ -710,0 +710,0 @@ if (toolChoice == null) {

import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider';
import { FetchFunction } from '@ai-sdk/provider-utils';

@@ -69,3 +70,3 @@ type OpenAIChatModelId = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {});

}) => string;
fetch?: typeof fetch;
fetch?: FetchFunction;
};

@@ -138,3 +139,3 @@ declare class OpenAIChatLanguageModel implements LanguageModelV1 {

}) => string;
fetch?: typeof fetch;
fetch?: FetchFunction;
};

@@ -183,3 +184,3 @@ declare class OpenAICompletionLanguageModel implements LanguageModelV1 {

headers: () => Record<string, string | undefined>;
fetch?: typeof fetch;
fetch?: FetchFunction;
};

@@ -255,3 +256,3 @@ declare class OpenAIEmbeddingModel implements EmbeddingModelV1<string> {

*/
fetch?: typeof fetch;
fetch?: FetchFunction;
}

@@ -258,0 +259,0 @@ /**

@@ -335,5 +335,5 @@ "use strict";

description: mode.tool.description,
parameters: mode.tool.parameters
},
strict: this.settings.structuredOutputs === true ? true : void 0
parameters: mode.tool.parameters,
strict: this.settings.structuredOutputs === true ? true : void 0
}
}

@@ -705,5 +705,5 @@ ]

description: tool.description,
parameters: tool.parameters
},
strict: structuredOutputs === true ? true : void 0
parameters: tool.parameters,
strict: structuredOutputs === true ? true : void 0
}
}));

@@ -710,0 +710,0 @@ if (toolChoice == null) {

import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider';
import { FetchFunction } from '@ai-sdk/provider-utils';

@@ -69,3 +70,3 @@ type OpenAIChatModelId = 'gpt-4o' | 'gpt-4o-2024-05-13' | 'gpt-4o-2024-08-06' | 'gpt-4o-mini' | 'gpt-4o-mini-2024-07-18' | 'gpt-4-turbo' | 'gpt-4-turbo-2024-04-09' | 'gpt-4-turbo-preview' | 'gpt-4-0125-preview' | 'gpt-4-1106-preview' | 'gpt-4' | 'gpt-4-0613' | 'gpt-3.5-turbo-0125' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-1106' | (string & {});

}) => string;
fetch?: typeof fetch;
fetch?: FetchFunction;
};

@@ -138,3 +139,3 @@ declare class OpenAIChatLanguageModel implements LanguageModelV1 {

}) => string;
fetch?: typeof fetch;
fetch?: FetchFunction;
};

@@ -183,3 +184,3 @@ declare class OpenAICompletionLanguageModel implements LanguageModelV1 {

headers: () => Record<string, string | undefined>;
fetch?: typeof fetch;
fetch?: FetchFunction;
};

@@ -186,0 +187,0 @@ declare class OpenAIEmbeddingModel implements EmbeddingModelV1<string> {

@@ -332,5 +332,5 @@ "use strict";

description: mode.tool.description,
parameters: mode.tool.parameters
},
strict: this.settings.structuredOutputs === true ? true : void 0
parameters: mode.tool.parameters,
strict: this.settings.structuredOutputs === true ? true : void 0
}
}

@@ -702,5 +702,5 @@ ]

description: tool.description,
parameters: tool.parameters
},
strict: structuredOutputs === true ? true : void 0
parameters: tool.parameters,
strict: structuredOutputs === true ? true : void 0
}
}));

@@ -707,0 +707,0 @@ if (toolChoice == null) {

{
"name": "@ai-sdk/openai",
"version": "0.0.46",
"version": "0.0.47",
"license": "Apache-2.0",

@@ -29,3 +29,3 @@ "sideEffects": false,

"@ai-sdk/provider": "0.0.19",
"@ai-sdk/provider-utils": "1.0.11"
"@ai-sdk/provider-utils": "1.0.12"
},

@@ -35,3 +35,3 @@ "devDependencies": {

"tsup": "^8",
"typescript": "5.1.3",
"typescript": "5.5.4",
"zod": "3.23.8",

@@ -38,0 +38,0 @@ "@vercel/ai-tsconfig": "0.0.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc