@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 2.0.80
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 707a163: feat(openai): additional settings for file search tool
|
|
8
|
+
|
|
9
|
+
## 2.0.79
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5b6aa88: fix(openai): fix parameter exclusion logic
|
|
14
|
+
|
|
3
15
|
## 2.0.78
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -137,13 +137,13 @@ type OpenAIResponsesFileSearchToolComparisonFilter = {
|
|
|
137
137
|
*/
|
|
138
138
|
key: string;
|
|
139
139
|
/**
|
|
140
|
-
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte.
|
|
140
|
+
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.
|
|
141
141
|
*/
|
|
142
|
-
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
142
|
+
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin';
|
|
143
143
|
/**
|
|
144
|
-
* The value to compare against the attribute key; supports string, number, or
|
|
144
|
+
* The value to compare against the attribute key; supports string, number, boolean, or array of string types.
|
|
145
145
|
*/
|
|
146
|
-
value: string | number | boolean;
|
|
146
|
+
value: string | number | boolean | string[];
|
|
147
147
|
};
|
|
148
148
|
/**
|
|
149
149
|
* Combine multiple filters using and or or.
|
package/dist/index.d.ts
CHANGED
|
@@ -137,13 +137,13 @@ type OpenAIResponsesFileSearchToolComparisonFilter = {
|
|
|
137
137
|
*/
|
|
138
138
|
key: string;
|
|
139
139
|
/**
|
|
140
|
-
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte.
|
|
140
|
+
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.
|
|
141
141
|
*/
|
|
142
|
-
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
142
|
+
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin';
|
|
143
143
|
/**
|
|
144
|
-
* The value to compare against the attribute key; supports string, number, or
|
|
144
|
+
* The value to compare against the attribute key; supports string, number, boolean, or array of string types.
|
|
145
145
|
*/
|
|
146
|
-
value: string | number | boolean;
|
|
146
|
+
value: string | number | boolean | string[];
|
|
147
147
|
};
|
|
148
148
|
/**
|
|
149
149
|
* Combine multiple filters using and or or.
|
package/dist/index.js
CHANGED
|
@@ -1803,8 +1803,8 @@ var import_provider_utils15 = require("@ai-sdk/provider-utils");
|
|
|
1803
1803
|
var import_v410 = require("zod/v4");
|
|
1804
1804
|
var comparisonFilterSchema = import_v410.z.object({
|
|
1805
1805
|
key: import_v410.z.string(),
|
|
1806
|
-
type: import_v410.z.enum(["eq", "ne", "gt", "gte", "lt", "lte"]),
|
|
1807
|
-
value: import_v410.z.union([import_v410.z.string(), import_v410.z.number(), import_v410.z.boolean()])
|
|
1806
|
+
type: import_v410.z.enum(["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin"]),
|
|
1807
|
+
value: import_v410.z.union([import_v410.z.string(), import_v410.z.number(), import_v410.z.boolean(), import_v410.z.array(import_v410.z.string())])
|
|
1808
1808
|
});
|
|
1809
1809
|
var compoundFilterSchema = import_v410.z.object({
|
|
1810
1810
|
type: import_v410.z.enum(["and", "or"]),
|
|
@@ -3270,22 +3270,24 @@ var OpenAIResponsesLanguageModel = class {
|
|
|
3270
3270
|
}
|
|
3271
3271
|
}
|
|
3272
3272
|
};
|
|
3273
|
-
if (modelCapabilities.isReasoningModel
|
|
3274
|
-
if (
|
|
3275
|
-
baseArgs.temperature
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
baseArgs.top_p
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3273
|
+
if (modelCapabilities.isReasoningModel) {
|
|
3274
|
+
if (!((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
3275
|
+
if (baseArgs.temperature != null) {
|
|
3276
|
+
baseArgs.temperature = void 0;
|
|
3277
|
+
warnings.push({
|
|
3278
|
+
type: "unsupported-setting",
|
|
3279
|
+
setting: "temperature",
|
|
3280
|
+
details: "temperature is not supported for reasoning models"
|
|
3281
|
+
});
|
|
3282
|
+
}
|
|
3283
|
+
if (baseArgs.top_p != null) {
|
|
3284
|
+
baseArgs.top_p = void 0;
|
|
3285
|
+
warnings.push({
|
|
3286
|
+
type: "unsupported-setting",
|
|
3287
|
+
setting: "topP",
|
|
3288
|
+
details: "topP is not supported for reasoning models"
|
|
3289
|
+
});
|
|
3290
|
+
}
|
|
3289
3291
|
}
|
|
3290
3292
|
} else {
|
|
3291
3293
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|
|
@@ -4539,7 +4541,7 @@ var OpenAITranscriptionModel = class {
|
|
|
4539
4541
|
};
|
|
4540
4542
|
|
|
4541
4543
|
// src/version.ts
|
|
4542
|
-
var VERSION = true ? "2.0.
|
|
4544
|
+
var VERSION = true ? "2.0.80" : "0.0.0-test";
|
|
4543
4545
|
|
|
4544
4546
|
// src/openai-provider.ts
|
|
4545
4547
|
function createOpenAI(options = {}) {
|