@ai-sdk/openai 2.0.52 → 2.0.54

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.
@@ -3025,6 +3025,7 @@ var openaiResponsesProviderOptionsSchema = lazyValidator12(
3025
3025
  store: z15.boolean().nullish(),
3026
3026
  strictJsonSchema: z15.boolean().nullish(),
3027
3027
  textVerbosity: z15.enum(["low", "medium", "high"]).nullish(),
3028
+ truncation: z15.enum(["auto", "disabled"]).nullish(),
3028
3029
  user: z15.string().nullish()
3029
3030
  })
3030
3031
  )
@@ -3552,6 +3553,7 @@ var OpenAIResponsesLanguageModel = class {
3552
3553
  prompt_cache_key: openaiOptions == null ? void 0 : openaiOptions.promptCacheKey,
3553
3554
  safety_identifier: openaiOptions == null ? void 0 : openaiOptions.safetyIdentifier,
3554
3555
  top_logprobs: topLogprobs,
3556
+ truncation: openaiOptions == null ? void 0 : openaiOptions.truncation,
3555
3557
  // model-specific settings:
3556
3558
  ...modelConfig.isReasoningModel && ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null || (openaiOptions == null ? void 0 : openaiOptions.reasoningSummary) != null) && {
3557
3559
  reasoning: {
@@ -3562,9 +3564,6 @@ var OpenAIResponsesLanguageModel = class {
3562
3564
  summary: openaiOptions.reasoningSummary
3563
3565
  }
3564
3566
  }
3565
- },
3566
- ...modelConfig.requiredAutoTruncation && {
3567
- truncation: "auto"
3568
3567
  }
3569
3568
  };
3570
3569
  if (modelConfig.isReasoningModel) {
@@ -4406,7 +4405,6 @@ function getResponsesModelConfig(modelId) {
4406
4405
  const supportsFlexProcessing2 = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
4407
4406
  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");
4408
4407
  const defaults = {
4409
- requiredAutoTruncation: false,
4410
4408
  systemMessageMode: "system",
4411
4409
  supportsFlexProcessing: supportsFlexProcessing2,
4412
4410
  supportsPriorityProcessing: supportsPriorityProcessing2