@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.
package/dist/index.mjs CHANGED
@@ -444,7 +444,7 @@ var openaiChatLanguageModelOptions = lazyValidator2(
444
444
  /**
445
445
  * Reasoning effort for reasoning models. Defaults to `medium`.
446
446
  */
447
- reasoningEffort: z3.enum(["none", "minimal", "low", "medium", "high"]).optional(),
447
+ reasoningEffort: z3.enum(["none", "minimal", "low", "medium", "high", "xhigh"]).optional(),
448
448
  /**
449
449
  * Maximum number of completion tokens to generate. Useful for reasoning models.
450
450
  */
@@ -2950,7 +2950,8 @@ var openaiResponsesReasoningModelIds = [
2950
2950
  "gpt-5.1",
2951
2951
  "gpt-5.1-chat-latest",
2952
2952
  "gpt-5.1-codex-mini",
2953
- "gpt-5.1-codex"
2953
+ "gpt-5.1-codex",
2954
+ "gpt-5.1-codex-max"
2954
2955
  ];
2955
2956
  var openaiResponsesModelIds = [
2956
2957
  "gpt-4.1",
@@ -3033,6 +3034,16 @@ var openaiResponsesProviderOptionsSchema = lazyValidator9(
3033
3034
  * @default 'in_memory'
3034
3035
  */
3035
3036
  promptCacheRetention: z17.enum(["in_memory", "24h"]).nullish(),
3037
+ /**
3038
+ * Reasoning effort for reasoning models. Defaults to `medium`. If you use
3039
+ * `providerOptions` to set the `reasoningEffort` option, this model setting will be ignored.
3040
+ * Valid values: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh'
3041
+ *
3042
+ * The 'none' type for `reasoningEffort` is only available for OpenAI's GPT-5.1
3043
+ * models. Also, the 'xhigh' type for `reasoningEffort` is only available for
3044
+ * OpenAI's GPT-5.1-Codex-Max model. Setting `reasoningEffort` to 'none' or 'xhigh' with unsupported models will result in
3045
+ * an error.
3046
+ */
3036
3047
  reasoningEffort: z17.string().nullish(),
3037
3048
  reasoningSummary: z17.string().nullish(),
3038
3049
  safetyIdentifier: z17.string().nullish(),
@@ -4632,7 +4643,7 @@ var OpenAITranscriptionModel = class {
4632
4643
  };
4633
4644
 
4634
4645
  // src/version.ts
4635
- var VERSION = true ? "2.0.81" : "0.0.0-test";
4646
+ var VERSION = true ? "2.0.83" : "0.0.0-test";
4636
4647
 
4637
4648
  // src/openai-provider.ts
4638
4649
  function createOpenAI(options = {}) {