@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 +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 +1 -1
package/dist/internal/index.js
CHANGED
|
@@ -4139,22 +4139,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
4139
4139
|
}
|
|
4140
4140
|
}
|
|
4141
4141
|
};
|
|
4142
|
-
if (modelCapabilities.isReasoningModel
|
|
4143
|
-
if (
|
|
4144
|
-
baseArgs.temperature
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
baseArgs.top_p
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4142
|
+
if (modelCapabilities.isReasoningModel) {
|
|
4143
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
4144
|
+
if (baseArgs.temperature != null) {
|
|
4145
|
+
baseArgs.temperature = void 0;
|
|
4146
|
+
warnings.push({
|
|
4147
|
+
type: "unsupported",
|
|
4148
|
+
feature: "temperature",
|
|
4149
|
+
details: "temperature is not supported for reasoning models"
|
|
4150
|
+
});
|
|
4151
|
+
}
|
|
4152
|
+
if (baseArgs.top_p != null) {
|
|
4153
|
+
baseArgs.top_p = void 0;
|
|
4154
|
+
warnings.push({
|
|
4155
|
+
type: "unsupported",
|
|
4156
|
+
feature: "topP",
|
|
4157
|
+
details: "topP is not supported for reasoning models"
|
|
4158
|
+
});
|
|
4159
|
+
}
|
|
4158
4160
|
}
|
|
4159
4161
|
} else {
|
|
4160
4162
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|