@ai-sdk/openai 3.0.0-beta.86 → 3.0.0-beta.88
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 +14 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- 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 +3 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/index.mjs +3 -2
- package/dist/internal/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/openai
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.88
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 92c6241: feat(openai): additional settings for file search tool
|
|
8
|
+
|
|
9
|
+
## 3.0.0-beta.87
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [53f3368]
|
|
14
|
+
- @ai-sdk/provider@3.0.0-beta.25
|
|
15
|
+
- @ai-sdk/provider-utils@4.0.0-beta.44
|
|
16
|
+
|
|
3
17
|
## 3.0.0-beta.86
|
|
4
18
|
|
|
5
19
|
### 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
|
@@ -1605,6 +1605,7 @@ var OpenAIEmbeddingModel = class {
|
|
|
1605
1605
|
fetch: this.config.fetch
|
|
1606
1606
|
});
|
|
1607
1607
|
return {
|
|
1608
|
+
warnings: [],
|
|
1608
1609
|
embeddings: response.data.map((item) => item.embedding),
|
|
1609
1610
|
usage: response.usage ? { tokens: response.usage.prompt_tokens } : void 0,
|
|
1610
1611
|
response: { headers: responseHeaders, body: rawValue }
|
|
@@ -1838,8 +1839,8 @@ var import_provider_utils16 = require("@ai-sdk/provider-utils");
|
|
|
1838
1839
|
var import_v411 = require("zod/v4");
|
|
1839
1840
|
var comparisonFilterSchema = import_v411.z.object({
|
|
1840
1841
|
key: import_v411.z.string(),
|
|
1841
|
-
type: import_v411.z.enum(["eq", "ne", "gt", "gte", "lt", "lte"]),
|
|
1842
|
-
value: import_v411.z.union([import_v411.z.string(), import_v411.z.number(), import_v411.z.boolean()])
|
|
1842
|
+
type: import_v411.z.enum(["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin"]),
|
|
1843
|
+
value: import_v411.z.union([import_v411.z.string(), import_v411.z.number(), import_v411.z.boolean(), import_v411.z.array(import_v411.z.string())])
|
|
1843
1844
|
});
|
|
1844
1845
|
var compoundFilterSchema = import_v411.z.object({
|
|
1845
1846
|
type: import_v411.z.enum(["and", "or"]),
|
|
@@ -5403,7 +5404,7 @@ var OpenAITranscriptionModel = class {
|
|
|
5403
5404
|
};
|
|
5404
5405
|
|
|
5405
5406
|
// src/version.ts
|
|
5406
|
-
var VERSION = true ? "3.0.0-beta.
|
|
5407
|
+
var VERSION = true ? "3.0.0-beta.88" : "0.0.0-test";
|
|
5407
5408
|
|
|
5408
5409
|
// src/openai-provider.ts
|
|
5409
5410
|
function createOpenAI(options = {}) {
|