@ai-sdk/openai 3.0.0-beta.85 → 3.0.0-beta.86

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.
@@ -4182,22 +4182,24 @@ var OpenAIResponsesLanguageModel = class {
4182
4182
  }
4183
4183
  }
4184
4184
  };
4185
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
4186
- if (baseArgs.temperature != null) {
4187
- baseArgs.temperature = void 0;
4188
- warnings.push({
4189
- type: "unsupported",
4190
- feature: "temperature",
4191
- details: "temperature is not supported for reasoning models"
4192
- });
4193
- }
4194
- if (baseArgs.top_p != null) {
4195
- baseArgs.top_p = void 0;
4196
- warnings.push({
4197
- type: "unsupported",
4198
- feature: "topP",
4199
- details: "topP is not supported for reasoning models"
4200
- });
4185
+ if (modelCapabilities.isReasoningModel) {
4186
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
4187
+ if (baseArgs.temperature != null) {
4188
+ baseArgs.temperature = void 0;
4189
+ warnings.push({
4190
+ type: "unsupported",
4191
+ feature: "temperature",
4192
+ details: "temperature is not supported for reasoning models"
4193
+ });
4194
+ }
4195
+ if (baseArgs.top_p != null) {
4196
+ baseArgs.top_p = void 0;
4197
+ warnings.push({
4198
+ type: "unsupported",
4199
+ feature: "topP",
4200
+ details: "topP is not supported for reasoning models"
4201
+ });
4202
+ }
4201
4203
  }
4202
4204
  } else {
4203
4205
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {