@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 +6 -0
- package/dist/index.js +19 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -17
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +18 -16
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +18 -16
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -3635,22 +3635,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3635
3635
|
}
|
|
3636
3636
|
}
|
|
3637
3637
|
};
|
|
3638
|
-
if (modelCapabilities.isReasoningModel
|
|
3639
|
-
if (
|
|
3640
|
-
baseArgs.temperature
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
baseArgs.top_p
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3638
|
+
if (modelCapabilities.isReasoningModel) {
|
|
3639
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
3640
|
+
if (baseArgs.temperature != null) {
|
|
3641
|
+
baseArgs.temperature = void 0;
|
|
3642
|
+
warnings.push({
|
|
3643
|
+
type: "unsupported-setting",
|
|
3644
|
+
setting: "temperature",
|
|
3645
|
+
details: "temperature is not supported for reasoning models"
|
|
3646
|
+
});
|
|
3647
|
+
}
|
|
3648
|
+
if (baseArgs.top_p != null) {
|
|
3649
|
+
baseArgs.top_p = void 0;
|
|
3650
|
+
warnings.push({
|
|
3651
|
+
type: "unsupported-setting",
|
|
3652
|
+
setting: "topP",
|
|
3653
|
+
details: "topP is not supported for reasoning models"
|
|
3654
|
+
});
|
|
3655
|
+
}
|
|
3654
3656
|
}
|
|
3655
3657
|
} else {
|
|
3656
3658
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|