@ai-sdk/openai 2.1.0-beta.1 → 2.1.0-beta.3

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.
@@ -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 openaiProviderOptions = z2.object({
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: openaiProviderOptions
431
+ schema: openaiChatLanguageModelOptions
432
432
  })) != null ? _a : {};
433
433
  const structuredOutputs = (_b = openaiOptions.structuredOutputs) != null ? _b : true;
434
434
  if (topK != null) {
@@ -1516,7 +1516,7 @@ var openaiEmbeddingProviderOptions = z6.object({
1516
1516
  // src/embedding/openai-embedding-model.ts
1517
1517
  var OpenAIEmbeddingModel = class {
1518
1518
  constructor(modelId, config) {
1519
- this.specificationVersion = "v2";
1519
+ this.specificationVersion = "v3";
1520
1520
  this.maxEmbeddingsPerCall = 2048;
1521
1521
  this.supportsParallelCalls = true;
1522
1522
  this.modelId = modelId;
@@ -2947,7 +2947,7 @@ var OpenAIResponsesLanguageModel = class {
2947
2947
  ])
2948
2948
  ),
2949
2949
  service_tier: z18.string().nullish(),
2950
- incomplete_details: z18.object({ reason: z18.string() }).nullable(),
2950
+ incomplete_details: z18.object({ reason: z18.string() }).nullish(),
2951
2951
  usage: usageSchema2
2952
2952
  })
2953
2953
  ),
@@ -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