@ai-sdk/openai 2.1.0-beta.6 → 2.1.0-beta.7
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.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +225 -14
- package/dist/internal/index.d.ts +225 -14
- package/dist/internal/index.js +22 -3
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +14 -3
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/internal/index.mjs
CHANGED
|
@@ -398,7 +398,7 @@ function prepareChatTools({
|
|
|
398
398
|
// src/chat/openai-chat-language-model.ts
|
|
399
399
|
var OpenAIChatLanguageModel = class {
|
|
400
400
|
constructor(modelId, config) {
|
|
401
|
-
this.specificationVersion = "
|
|
401
|
+
this.specificationVersion = "v3";
|
|
402
402
|
this.supportedUrls = {
|
|
403
403
|
"image/*": [/^https?:\/\/.*$/]
|
|
404
404
|
};
|
|
@@ -1216,7 +1216,7 @@ var openaiCompletionProviderOptions = z4.object({
|
|
|
1216
1216
|
// src/completion/openai-completion-language-model.ts
|
|
1217
1217
|
var OpenAICompletionLanguageModel = class {
|
|
1218
1218
|
constructor(modelId, config) {
|
|
1219
|
-
this.specificationVersion = "
|
|
1219
|
+
this.specificationVersion = "v3";
|
|
1220
1220
|
this.supportedUrls = {
|
|
1221
1221
|
// No URLs are supported for completion models.
|
|
1222
1222
|
};
|
|
@@ -2311,6 +2311,9 @@ var codeInterpreterToolFactory = createProviderDefinedToolFactoryWithOutputSchem
|
|
|
2311
2311
|
inputSchema: codeInterpreterInputSchema,
|
|
2312
2312
|
outputSchema: codeInterpreterOutputSchema
|
|
2313
2313
|
});
|
|
2314
|
+
var codeInterpreter = (args = {}) => {
|
|
2315
|
+
return codeInterpreterToolFactory(args);
|
|
2316
|
+
};
|
|
2314
2317
|
|
|
2315
2318
|
// src/tool/file-search.ts
|
|
2316
2319
|
import { createProviderDefinedToolFactoryWithOutputSchema as createProviderDefinedToolFactoryWithOutputSchema2 } from "@ai-sdk/provider-utils";
|
|
@@ -2662,7 +2665,7 @@ var LOGPROBS_SCHEMA = z18.array(
|
|
|
2662
2665
|
);
|
|
2663
2666
|
var OpenAIResponsesLanguageModel = class {
|
|
2664
2667
|
constructor(modelId, config) {
|
|
2665
|
-
this.specificationVersion = "
|
|
2668
|
+
this.specificationVersion = "v3";
|
|
2666
2669
|
this.supportedUrls = {
|
|
2667
2670
|
"image/*": [/^https?:\/\/.*$/],
|
|
2668
2671
|
"application/pdf": [/^https?:\/\/.*$/]
|
|
@@ -3847,6 +3850,14 @@ export {
|
|
|
3847
3850
|
OpenAIResponsesLanguageModel,
|
|
3848
3851
|
OpenAISpeechModel,
|
|
3849
3852
|
OpenAITranscriptionModel,
|
|
3853
|
+
codeInterpreter,
|
|
3854
|
+
codeInterpreterArgsSchema,
|
|
3855
|
+
codeInterpreterInputSchema,
|
|
3856
|
+
codeInterpreterOutputSchema,
|
|
3857
|
+
codeInterpreterToolFactory,
|
|
3858
|
+
fileSearch,
|
|
3859
|
+
fileSearchArgsSchema,
|
|
3860
|
+
fileSearchOutputSchema,
|
|
3850
3861
|
hasDefaultResponseFormat,
|
|
3851
3862
|
modelMaxImagesPerCall,
|
|
3852
3863
|
openAITranscriptionProviderOptions,
|