@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/index.mjs
CHANGED
|
@@ -3343,22 +3343,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3343
3343
|
}
|
|
3344
3344
|
}
|
|
3345
3345
|
};
|
|
3346
|
-
if (modelCapabilities.isReasoningModel
|
|
3347
|
-
if (
|
|
3348
|
-
baseArgs.temperature
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
baseArgs.top_p
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3346
|
+
if (modelCapabilities.isReasoningModel) {
|
|
3347
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
3348
|
+
if (baseArgs.temperature != null) {
|
|
3349
|
+
baseArgs.temperature = void 0;
|
|
3350
|
+
warnings.push({
|
|
3351
|
+
type: "unsupported-setting",
|
|
3352
|
+
setting: "temperature",
|
|
3353
|
+
details: "temperature is not supported for reasoning models"
|
|
3354
|
+
});
|
|
3355
|
+
}
|
|
3356
|
+
if (baseArgs.top_p != null) {
|
|
3357
|
+
baseArgs.top_p = void 0;
|
|
3358
|
+
warnings.push({
|
|
3359
|
+
type: "unsupported-setting",
|
|
3360
|
+
setting: "topP",
|
|
3361
|
+
details: "topP is not supported for reasoning models"
|
|
3362
|
+
});
|
|
3363
|
+
}
|
|
3362
3364
|
}
|
|
3363
3365
|
} else {
|
|
3364
3366
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|
|
@@ -4630,7 +4632,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4630
4632
|
};
|
|
4631
4633
|
|
|
4632
4634
|
// src/version.ts
|
|
4633
|
-
var VERSION = true ? "2.0.
|
|
4635
|
+
var VERSION = true ? "2.0.79" : "0.0.0-test";
|
|
4634
4636
|
|
|
4635
4637
|
// src/openai-provider.ts
|
|
4636
4638
|
function createOpenAI(options = {}) {
|