@ai-sdk/openai 2.0.81 → 2.0.83

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
  */
@@ -2987,7 +2987,8 @@ var openaiResponsesReasoningModelIds = [
2987
2987
  "gpt-5.1",
2988
2988
  "gpt-5.1-chat-latest",
2989
2989
  "gpt-5.1-codex-mini",
2990
- "gpt-5.1-codex"
2990
+ "gpt-5.1-codex",
2991
+ "gpt-5.1-codex-max"
2991
2992
  ];
2992
2993
  var openaiResponsesModelIds = [
2993
2994
  "gpt-4.1",
@@ -3070,6 +3071,16 @@ var openaiResponsesProviderOptionsSchema = lazyValidator12(
3070
3071
  * @default 'in_memory'
3071
3072
  */
3072
3073
  promptCacheRetention: z15.enum(["in_memory", "24h"]).nullish(),
3074
+ /**
3075
+ * Reasoning effort for reasoning models. Defaults to `medium`. If you use
3076
+ * `providerOptions` to set the `reasoningEffort` option, this model setting will be ignored.
3077
+ * Valid values: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'
3078
+ *
3079
+ * The 'none' type for `reasoningEffort` is only available for OpenAI's GPT-5.1
3080
+ * models. Also, the 'xhigh' type for `reasoningEffort` is only available for
3081
+ * OpenAI's GPT-5.1-Codex-Max model. Setting `reasoningEffort` to 'none' or 'xhigh' with unsupported models will result in
3082
+ * an error.
3083
+ */
3073
3084
  reasoningEffort: z15.string().nullish(),
3074
3085
  reasoningSummary: z15.string().nullish(),
3075
3086
  safetyIdentifier: z15.string().nullish(),