@ai-sdk/openai 2.0.78 → 2.0.80
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 +12 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +21 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -19
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.d.mts +4 -4
- package/dist/internal/index.d.ts +4 -4
- package/dist/internal/index.js +20 -18
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +20 -18
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/internal/index.mjs
CHANGED
|
@@ -3146,8 +3146,8 @@ import {
|
|
|
3146
3146
|
import { z as z17 } from "zod/v4";
|
|
3147
3147
|
var comparisonFilterSchema = z17.object({
|
|
3148
3148
|
key: z17.string(),
|
|
3149
|
-
type: z17.enum(["eq", "ne", "gt", "gte", "lt", "lte"]),
|
|
3150
|
-
value: z17.union([z17.string(), z17.number(), z17.boolean()])
|
|
3149
|
+
type: z17.enum(["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin"]),
|
|
3150
|
+
value: z17.union([z17.string(), z17.number(), z17.boolean(), z17.array(z17.string())])
|
|
3151
3151
|
});
|
|
3152
3152
|
var compoundFilterSchema = z17.object({
|
|
3153
3153
|
type: z17.enum(["and", "or"]),
|
|
@@ -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) {
|