@ai-sdk/openai 2.0.80 → 2.0.82

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.
@@ -436,7 +436,7 @@ var openaiChatLanguageModelOptions = lazyValidator2(
436
436
  /**
437
437
  * Reasoning effort for reasoning models. Defaults to `medium`.
438
438
  */
439
- reasoningEffort: z3.enum(["none", "minimal", "low", "medium", "high"]).optional(),
439
+ reasoningEffort: z3.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(),
440
440
  /**
441
441
  * Maximum number of completion tokens to generate. Useful for reasoning models.
442
442
  */
@@ -3070,6 +3070,16 @@ var openaiResponsesProviderOptionsSchema = lazyValidator12(
3070
3070
  * @default 'in_memory'
3071
3071
  */
3072
3072
  promptCacheRetention: z15.enum(["in_memory", "24h"]).nullish(),
3073
+ /**
3074
+ * Reasoning effort for reasoning models. Defaults to `medium`. If you use
3075
+ * `providerOptions` to set the `reasoningEffort` option, this model setting will be ignored.
3076
+ * Valid values: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'
3077
+ *
3078
+ * The 'none' type for `reasoningEffort` is only available for OpenAI's GPT-5.1
3079
+ * models. Also, the 'xhigh' type for `reasoningEffort` is only available for
3080
+ * OpenAI's GPT-5.1-Codex-Max model. Setting `reasoningEffort` to 'none' or 'xhigh' with unsupported models will result in
3081
+ * an error.
3082
+ */
3073
3083
  reasoningEffort: z15.string().nullish(),
3074
3084
  reasoningSummary: z15.string().nullish(),
3075
3085
  safetyIdentifier: z15.string().nullish(),