@ai-sdk/openai 2.0.78 → 2.0.79

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.
@@ -3574,22 +3574,24 @@ var OpenAIResponsesLanguageModel = class {
3574
3574
  }
3575
3575
  }
3576
3576
  };
3577
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
3578
- if (baseArgs.temperature != null) {
3579
- baseArgs.temperature = void 0;
3580
- warnings.push({
3581
- type: "unsupported-setting",
3582
- setting: "temperature",
3583
- details: "temperature is not supported for reasoning models"
3584
- });
3585
- }
3586
- if (baseArgs.top_p != null) {
3587
- baseArgs.top_p = void 0;
3588
- warnings.push({
3589
- type: "unsupported-setting",
3590
- setting: "topP",
3591
- details: "topP is not supported for reasoning models"
3592
- });
3577
+ if (modelCapabilities.isReasoningModel) {
3578
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
3579
+ if (baseArgs.temperature != null) {
3580
+ baseArgs.temperature = void 0;
3581
+ warnings.push({
3582
+ type: "unsupported-setting",
3583
+ setting: "temperature",
3584
+ details: "temperature is not supported for reasoning models"
3585
+ });
3586
+ }
3587
+ if (baseArgs.top_p != null) {
3588
+ baseArgs.top_p = void 0;
3589
+ warnings.push({
3590
+ type: "unsupported-setting",
3591
+ setting: "topP",
3592
+ details: "topP is not supported for reasoning models"
3593
+ });
3594
+ }
3593
3595
  }
3594
3596
  } else {
3595
3597
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {