@ai-sdk/openai 2.0.52 → 2.0.53

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
@@ -2981,6 +2981,7 @@ var openaiResponsesProviderOptionsSchema = lazyValidator9(
2981
2981
  store: z17.boolean().nullish(),
2982
2982
  strictJsonSchema: z17.boolean().nullish(),
2983
2983
  textVerbosity: z17.enum(["low", "medium", "high"]).nullish(),
2984
+ truncation: z17.enum(["auto", "disabled"]).nullish(),
2984
2985
  user: z17.string().nullish()
2985
2986
  })
2986
2987
  )
@@ -3260,6 +3261,7 @@ var OpenAIResponsesLanguageModel = class {
3260
3261
  prompt_cache_key: openaiOptions == null ? void 0 : openaiOptions.promptCacheKey,
3261
3262
  safety_identifier: openaiOptions == null ? void 0 : openaiOptions.safetyIdentifier,
3262
3263
  top_logprobs: topLogprobs,
3264
+ truncation: openaiOptions == null ? void 0 : openaiOptions.truncation,
3263
3265
  // model-specific settings:
3264
3266
  ...modelConfig.isReasoningModel && ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null || (openaiOptions == null ? void 0 : openaiOptions.reasoningSummary) != null) && {
3265
3267
  reasoning: {
@@ -3270,9 +3272,6 @@ var OpenAIResponsesLanguageModel = class {
3270
3272
  summary: openaiOptions.reasoningSummary
3271
3273
  }
3272
3274
  }
3273
- },
3274
- ...modelConfig.requiredAutoTruncation && {
3275
- truncation: "auto"
3276
3275
  }
3277
3276
  };
3278
3277
  if (modelConfig.isReasoningModel) {
@@ -4114,7 +4113,6 @@ function getResponsesModelConfig(modelId) {
4114
4113
  const supportsFlexProcessing2 = modelId.startsWith("o3") || modelId.startsWith("o4-mini") || modelId.startsWith("gpt-5") && !modelId.startsWith("gpt-5-chat");
4115
4114
  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");
4116
4115
  const defaults = {
4117
- requiredAutoTruncation: false,
4118
4116
  systemMessageMode: "system",
4119
4117
  supportsFlexProcessing: supportsFlexProcessing2,
4120
4118
  supportsPriorityProcessing: supportsPriorityProcessing2
@@ -4529,7 +4527,7 @@ var OpenAITranscriptionModel = class {
4529
4527
  };
4530
4528
 
4531
4529
  // src/version.ts
4532
- var VERSION = true ? "2.0.52" : "0.0.0-test";
4530
+ var VERSION = true ? "2.0.53" : "0.0.0-test";
4533
4531
 
4534
4532
  // src/openai-provider.ts
4535
4533
  function createOpenAI(options = {}) {