@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/index.mjs
CHANGED
|
@@ -3922,22 +3922,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3922
3922
|
}
|
|
3923
3923
|
}
|
|
3924
3924
|
};
|
|
3925
|
-
if (modelCapabilities.isReasoningModel
|
|
3926
|
-
if (
|
|
3927
|
-
baseArgs.temperature
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
baseArgs.top_p
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3925
|
+
if (modelCapabilities.isReasoningModel) {
|
|
3926
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
3927
|
+
if (baseArgs.temperature != null) {
|
|
3928
|
+
baseArgs.temperature = void 0;
|
|
3929
|
+
warnings.push({
|
|
3930
|
+
type: "unsupported",
|
|
3931
|
+
feature: "temperature",
|
|
3932
|
+
details: "temperature is not supported for reasoning models"
|
|
3933
|
+
});
|
|
3934
|
+
}
|
|
3935
|
+
if (baseArgs.top_p != null) {
|
|
3936
|
+
baseArgs.top_p = void 0;
|
|
3937
|
+
warnings.push({
|
|
3938
|
+
type: "unsupported",
|
|
3939
|
+
feature: "topP",
|
|
3940
|
+
details: "topP is not supported for reasoning models"
|
|
3941
|
+
});
|
|
3942
|
+
}
|
|
3941
3943
|
}
|
|
3942
3944
|
} else {
|
|
3943
3945
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|
|
@@ -5479,7 +5481,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5479
5481
|
};
|
|
5480
5482
|
|
|
5481
5483
|
// src/version.ts
|
|
5482
|
-
var VERSION = true ? "3.0.0-beta.
|
|
5484
|
+
var VERSION = true ? "3.0.0-beta.86" : "0.0.0-test";
|
|
5483
5485
|
|
|
5484
5486
|
// src/openai-provider.ts
|
|
5485
5487
|
function createOpenAI(options = {}) {
|