@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.
package/dist/index.mjs CHANGED
@@ -3343,22 +3343,24 @@ var OpenAIResponsesLanguageModel = class {
3343
3343
  }
3344
3344
  }
3345
3345
  };
3346
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
3347
- if (baseArgs.temperature != null) {
3348
- baseArgs.temperature = void 0;
3349
- warnings.push({
3350
- type: "unsupported-setting",
3351
- setting: "temperature",
3352
- details: "temperature is not supported for reasoning models"
3353
- });
3354
- }
3355
- if (baseArgs.top_p != null) {
3356
- baseArgs.top_p = void 0;
3357
- warnings.push({
3358
- type: "unsupported-setting",
3359
- setting: "topP",
3360
- details: "topP is not supported for reasoning models"
3361
- });
3346
+ if (modelCapabilities.isReasoningModel) {
3347
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
3348
+ if (baseArgs.temperature != null) {
3349
+ baseArgs.temperature = void 0;
3350
+ warnings.push({
3351
+ type: "unsupported-setting",
3352
+ setting: "temperature",
3353
+ details: "temperature is not supported for reasoning models"
3354
+ });
3355
+ }
3356
+ if (baseArgs.top_p != null) {
3357
+ baseArgs.top_p = void 0;
3358
+ warnings.push({
3359
+ type: "unsupported-setting",
3360
+ setting: "topP",
3361
+ details: "topP is not supported for reasoning models"
3362
+ });
3363
+ }
3362
3364
  }
3363
3365
  } else {
3364
3366
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
@@ -4630,7 +4632,7 @@ var OpenAITranscriptionModel = class {
4630
4632
  };
4631
4633
 
4632
4634
  // src/version.ts
4633
- var VERSION = true ? "2.0.78" : "0.0.0-test";
4635
+ var VERSION = true ? "2.0.79" : "0.0.0-test";
4634
4636
 
4635
4637
  // src/openai-provider.ts
4636
4638
  function createOpenAI(options = {}) {