@ai-sdk/openai
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -258,3 +258,3 @@ "use strict"; | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils3.combineHeaders)(this.config.headers(), options.headers), | ||
body: args, | ||
@@ -299,3 +299,3 @@ failedResponseHandler: openaiFailedResponseHandler, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils3.combineHeaders)(this.config.headers(), options.headers), | ||
body: { | ||
@@ -771,3 +771,3 @@ ...args, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils4.combineHeaders)(this.config.headers(), options.headers), | ||
body: args, | ||
@@ -803,3 +803,3 @@ failedResponseHandler: openaiFailedResponseHandler, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils4.combineHeaders)(this.config.headers(), options.headers), | ||
body: { | ||
@@ -994,2 +994,3 @@ ...this.getArgs(options), | ||
values, | ||
headers, | ||
abortSignal | ||
@@ -1010,3 +1011,3 @@ }) { | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils6.combineHeaders)(this.config.headers(), headers), | ||
body: { | ||
@@ -1013,0 +1014,0 @@ model: this.modelId, |
@@ -173,3 +173,3 @@ import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
constructor(modelId: OpenAIEmbeddingModelId, settings: OpenAIEmbeddingSettings, config: OpenAIEmbeddingConfig); | ||
doEmbed({ values, abortSignal, }: Parameters<EmbeddingModelV1<string>['doEmbed']>[0]): Promise<Awaited<ReturnType<EmbeddingModelV1<string>['doEmbed']>>>; | ||
doEmbed({ values, headers, abortSignal, }: Parameters<EmbeddingModelV1<string>['doEmbed']>[0]): Promise<Awaited<ReturnType<EmbeddingModelV1<string>['doEmbed']>>>; | ||
} | ||
@@ -176,0 +176,0 @@ |
@@ -258,3 +258,3 @@ "use strict"; | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils3.combineHeaders)(this.config.headers(), options.headers), | ||
body: args, | ||
@@ -299,3 +299,3 @@ failedResponseHandler: openaiFailedResponseHandler, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils3.combineHeaders)(this.config.headers(), options.headers), | ||
body: { | ||
@@ -771,3 +771,3 @@ ...args, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils4.combineHeaders)(this.config.headers(), options.headers), | ||
body: args, | ||
@@ -803,3 +803,3 @@ failedResponseHandler: openaiFailedResponseHandler, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils4.combineHeaders)(this.config.headers(), options.headers), | ||
body: { | ||
@@ -994,2 +994,3 @@ ...this.getArgs(options), | ||
values, | ||
headers, | ||
abortSignal | ||
@@ -1010,3 +1011,3 @@ }) { | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils6.combineHeaders)(this.config.headers(), headers), | ||
body: { | ||
@@ -1013,0 +1014,0 @@ model: this.modelId, |
@@ -173,5 +173,5 @@ import { LanguageModelV1, EmbeddingModelV1 } from '@ai-sdk/provider'; | ||
constructor(modelId: OpenAIEmbeddingModelId, settings: OpenAIEmbeddingSettings, config: OpenAIEmbeddingConfig); | ||
doEmbed({ values, abortSignal, }: Parameters<EmbeddingModelV1<string>['doEmbed']>[0]): Promise<Awaited<ReturnType<EmbeddingModelV1<string>['doEmbed']>>>; | ||
doEmbed({ values, headers, abortSignal, }: Parameters<EmbeddingModelV1<string>['doEmbed']>[0]): Promise<Awaited<ReturnType<EmbeddingModelV1<string>['doEmbed']>>>; | ||
} | ||
export { OpenAIChatLanguageModel, type OpenAIChatModelId, type OpenAIChatSettings, OpenAICompletionLanguageModel, type OpenAICompletionModelId, type OpenAICompletionSettings, OpenAIEmbeddingModel, type OpenAIEmbeddingModelId, type OpenAIEmbeddingSettings }; |
@@ -255,3 +255,3 @@ "use strict"; | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils3.combineHeaders)(this.config.headers(), options.headers), | ||
body: args, | ||
@@ -296,3 +296,3 @@ failedResponseHandler: openaiFailedResponseHandler, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils3.combineHeaders)(this.config.headers(), options.headers), | ||
body: { | ||
@@ -768,3 +768,3 @@ ...args, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils4.combineHeaders)(this.config.headers(), options.headers), | ||
body: args, | ||
@@ -800,3 +800,3 @@ failedResponseHandler: openaiFailedResponseHandler, | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils4.combineHeaders)(this.config.headers(), options.headers), | ||
body: { | ||
@@ -941,2 +941,3 @@ ...this.getArgs(options), | ||
values, | ||
headers, | ||
abortSignal | ||
@@ -957,3 +958,3 @@ }) { | ||
}), | ||
headers: this.config.headers(), | ||
headers: (0, import_provider_utils5.combineHeaders)(this.config.headers(), headers), | ||
body: { | ||
@@ -960,0 +961,0 @@ model: this.modelId, |
{ | ||
"name": "@ai-sdk/openai", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"license": "Apache-2.0", | ||
@@ -28,4 +28,4 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@ai-sdk/provider": "0.0.10", | ||
"@ai-sdk/provider-utils": "0.0.16" | ||
"@ai-sdk/provider": "0.0.11", | ||
"@ai-sdk/provider-utils": "1.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
466921
5617
+ Added@ai-sdk/provider@0.0.11(transitive)
+ Added@ai-sdk/provider-utils@1.0.0(transitive)
- Removed@ai-sdk/provider@0.0.10(transitive)
- Removed@ai-sdk/provider-utils@0.0.16(transitive)
Updated@ai-sdk/provider@0.0.11
Updated@ai-sdk/provider-utils@1.0.0