@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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.79
4
+
5
+ ### Patch Changes
6
+
7
+ - 5b6aa88: fix(openai): fix parameter exclusion logic
8
+
3
9
  ## 2.0.78
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3270,22 +3270,24 @@ var OpenAIResponsesLanguageModel = class {
3270
3270
  }
3271
3271
  }
3272
3272
  };
3273
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
3274
- if (baseArgs.temperature != null) {
3275
- baseArgs.temperature = void 0;
3276
- warnings.push({
3277
- type: "unsupported-setting",
3278
- setting: "temperature",
3279
- details: "temperature is not supported for reasoning models"
3280
- });
3281
- }
3282
- if (baseArgs.top_p != null) {
3283
- baseArgs.top_p = void 0;
3284
- warnings.push({
3285
- type: "unsupported-setting",
3286
- setting: "topP",
3287
- details: "topP is not supported for reasoning models"
3288
- });
3273
+ if (modelCapabilities.isReasoningModel) {
3274
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
3275
+ if (baseArgs.temperature != null) {
3276
+ baseArgs.temperature = void 0;
3277
+ warnings.push({
3278
+ type: "unsupported-setting",
3279
+ setting: "temperature",
3280
+ details: "temperature is not supported for reasoning models"
3281
+ });
3282
+ }
3283
+ if (baseArgs.top_p != null) {
3284
+ baseArgs.top_p = void 0;
3285
+ warnings.push({
3286
+ type: "unsupported-setting",
3287
+ setting: "topP",
3288
+ details: "topP is not supported for reasoning models"
3289
+ });
3290
+ }
3289
3291
  }
3290
3292
  } else {
3291
3293
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
@@ -4539,7 +4541,7 @@ var OpenAITranscriptionModel = class {
4539
4541
  };
4540
4542
 
4541
4543
  // src/version.ts
4542
- var VERSION = true ? "2.0.78" : "0.0.0-test";
4544
+ var VERSION = true ? "2.0.79" : "0.0.0-test";
4543
4545
 
4544
4546
  // src/openai-provider.ts
4545
4547
  function createOpenAI(options = {}) {