@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3856,22 +3856,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3856
3856
|
}
|
|
3857
3857
|
}
|
|
3858
3858
|
};
|
|
3859
|
-
if (modelCapabilities.isReasoningModel
|
|
3860
|
-
if (
|
|
3861
|
-
baseArgs.temperature
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
baseArgs.top_p
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
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.
|
|
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 = {}) {
|