@ai-sdk/openai 3.0.0-beta.32 → 3.0.0-beta.34

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/dist/index.mjs CHANGED
@@ -2984,6 +2984,7 @@ var openaiResponsesProviderOptionsSchema = lazySchema15(
2984
2984
  store: z17.boolean().nullish(),
2985
2985
  strictJsonSchema: z17.boolean().nullish(),
2986
2986
  textVerbosity: z17.enum(["low", "medium", "high"]).nullish(),
2987
+ truncation: z17.enum(["auto", "disabled"]).nullish(),
2987
2988
  user: z17.string().nullish()
2988
2989
  })
2989
2990
  )
@@ -3264,6 +3265,7 @@ var OpenAIResponsesLanguageModel = class {
3264
3265
  prompt_cache_key: openaiOptions == null ? void 0 : openaiOptions.promptCacheKey,
3265
3266
  safety_identifier: openaiOptions == null ? void 0 : openaiOptions.safetyIdentifier,
3266
3267
  top_logprobs: topLogprobs,
3268
+ truncation: openaiOptions == null ? void 0 : openaiOptions.truncation,
3267
3269
  // model-specific settings:
3268
3270
  ...modelConfig.isReasoningModel && ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null || (openaiOptions == null ? void 0 : openaiOptions.reasoningSummary) != null) && {
3269
3271
  reasoning: {
@@ -3274,9 +3276,6 @@ var OpenAIResponsesLanguageModel = class {
3274
3276
  summary: openaiOptions.reasoningSummary
3275
3277
  }
3276
3278
  }
3277
- },
3278
- ...modelConfig.requiredAutoTruncation && {
3279
- truncation: "auto"
3280
3279
  }
3281
3280
  };
3282
3281
  if (modelConfig.isReasoningModel) {
@@ -4132,7 +4131,6 @@ function getResponsesModelConfig(modelId) {
4132
4131
  const supportsFlexProcessing2 = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
4133
4132
  const supportsPriorityProcessing2 = modelId.startsWith("gpt-4") || modelId.startsWith("gpt-5-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-nano") && !modelId.startsWith("gpt-5-chat") || modelId.startsWith("o3") || modelId.startsWith("o4-mini");
4134
4133
  const defaults = {
4135
- requiredAutoTruncation: false,
4136
4134
  systemMessageMode: "system",
4137
4135
  supportsFlexProcessing: supportsFlexProcessing2,
4138
4136
  supportsPriorityProcessing: supportsPriorityProcessing2
@@ -4541,7 +4539,7 @@ var OpenAITranscriptionModel = class {
4541
4539
  };
4542
4540
 
4543
4541
  // src/version.ts
4544
- var VERSION = true ? "3.0.0-beta.32" : "0.0.0-test";
4542
+ var VERSION = true ? "3.0.0-beta.34" : "0.0.0-test";
4545
4543
 
4546
4544
  // src/openai-provider.ts
4547
4545
  function createOpenAI(options = {}) {