@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.0-beta.86
4
+
5
+ ### Patch Changes
6
+
7
+ - 0153bfa: fix(openai): fix parameter exclusion logic
8
+
3
9
  ## 3.0.0-beta.85
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3856,22 +3856,24 @@ var OpenAIResponsesLanguageModel = class {
3856
3856
  }
3857
3857
  }
3858
3858
  };
3859
- if (modelCapabilities.isReasoningModel || (openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters) {
3860
- if (baseArgs.temperature != null) {
3861
- baseArgs.temperature = void 0;
3862
- warnings.push({
3863
- type: "unsupported",
3864
- feature: "temperature",
3865
- details: "temperature is not supported for reasoning models"
3866
- });
3867
- }
3868
- if (baseArgs.top_p != null) {
3869
- baseArgs.top_p = void 0;
3870
- warnings.push({
3871
- type: "unsupported",
3872
- feature: "topP",
3873
- details: "topP is not supported for reasoning models"
3874
- });
3859
+ if (modelCapabilities.isReasoningModel) {
3860
+ if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
3861
+ if (baseArgs.temperature != null) {
3862
+ baseArgs.temperature = void 0;
3863
+ warnings.push({
3864
+ type: "unsupported",
3865
+ feature: "temperature",
3866
+ details: "temperature is not supported for reasoning models"
3867
+ });
3868
+ }
3869
+ if (baseArgs.top_p != null) {
3870
+ baseArgs.top_p = void 0;
3871
+ warnings.push({
3872
+ type: "unsupported",
3873
+ feature: "topP",
3874
+ details: "topP is not supported for reasoning models"
3875
+ });
3876
+ }
3875
3877
  }
3876
3878
  } else {
3877
3879
  if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
@@ -5401,7 +5403,7 @@ var OpenAITranscriptionModel = class {
5401
5403
  };
5402
5404
 
5403
5405
  // src/version.ts
5404
- var VERSION = true ? "3.0.0-beta.85" : "0.0.0-test";
5406
+ var VERSION = true ? "3.0.0-beta.86" : "0.0.0-test";
5405
5407
 
5406
5408
  // src/openai-provider.ts
5407
5409
  function createOpenAI(options = {}) {