@ai-sdk/openai 2.1.0-beta.2 → 2.1.0-beta.4
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 +32 -0
- package/dist/index.d.mts +36 -5
- package/dist/index.d.ts +36 -5
- 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 +7 -7
- package/dist/internal/index.d.ts +7 -7
- package/dist/internal/index.js +7 -7
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +5 -5
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -244,7 +244,7 @@ function mapOpenAIFinishReason(finishReason) {
|
|
|
244
244
|
|
|
245
245
|
// src/chat/openai-chat-options.ts
|
|
246
246
|
import { z as z2 } from "zod/v4";
|
|
247
|
-
var
|
|
247
|
+
var openaiChatLanguageModelOptions = z2.object({
|
|
248
248
|
/**
|
|
249
249
|
* Modify the likelihood of specified tokens appearing in the completion.
|
|
250
250
|
*
|
|
@@ -428,7 +428,7 @@ var OpenAIChatLanguageModel = class {
|
|
|
428
428
|
const openaiOptions = (_a = await parseProviderOptions({
|
|
429
429
|
provider: "openai",
|
|
430
430
|
providerOptions,
|
|
431
|
-
schema:
|
|
431
|
+
schema: openaiChatLanguageModelOptions
|
|
432
432
|
})) != null ? _a : {};
|
|
433
433
|
const structuredOutputs = (_b = openaiOptions.structuredOutputs) != null ? _b : true;
|
|
434
434
|
if (topK != null) {
|
|
@@ -1602,7 +1602,7 @@ var OpenAIImageModel = class {
|
|
|
1602
1602
|
constructor(modelId, config) {
|
|
1603
1603
|
this.modelId = modelId;
|
|
1604
1604
|
this.config = config;
|
|
1605
|
-
this.specificationVersion = "
|
|
1605
|
+
this.specificationVersion = "v3";
|
|
1606
1606
|
}
|
|
1607
1607
|
get maxImagesPerCall() {
|
|
1608
1608
|
var _a;
|
|
@@ -3836,8 +3836,8 @@ export {
|
|
|
3836
3836
|
hasDefaultResponseFormat,
|
|
3837
3837
|
modelMaxImagesPerCall,
|
|
3838
3838
|
openAITranscriptionProviderOptions,
|
|
3839
|
+
openaiChatLanguageModelOptions,
|
|
3839
3840
|
openaiCompletionProviderOptions,
|
|
3840
|
-
openaiEmbeddingProviderOptions
|
|
3841
|
-
openaiProviderOptions
|
|
3841
|
+
openaiEmbeddingProviderOptions
|
|
3842
3842
|
};
|
|
3843
3843
|
//# sourceMappingURL=index.mjs.map
|