@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
|
@@ -419,13 +419,13 @@ type OpenAIResponsesFileSearchToolComparisonFilter = {
|
|
|
419
419
|
*/
|
|
420
420
|
key: string;
|
|
421
421
|
/**
|
|
422
|
-
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte.
|
|
422
|
+
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.
|
|
423
423
|
*/
|
|
424
|
-
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
424
|
+
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin';
|
|
425
425
|
/**
|
|
426
|
-
* The value to compare against the attribute key; supports string, number, or
|
|
426
|
+
* The value to compare against the attribute key; supports string, number, boolean, or array of string types.
|
|
427
427
|
*/
|
|
428
|
-
value: string | number | boolean;
|
|
428
|
+
value: string | number | boolean | string[];
|
|
429
429
|
};
|
|
430
430
|
/**
|
|
431
431
|
* Combine multiple filters using and or or.
|
package/dist/internal/index.d.ts
CHANGED
|
@@ -419,13 +419,13 @@ type OpenAIResponsesFileSearchToolComparisonFilter = {
|
|
|
419
419
|
*/
|
|
420
420
|
key: string;
|
|
421
421
|
/**
|
|
422
|
-
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte.
|
|
422
|
+
* Specifies the comparison operator: eq, ne, gt, gte, lt, lte, in, nin.
|
|
423
423
|
*/
|
|
424
|
-
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
424
|
+
type: 'eq' | 'ne' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'nin';
|
|
425
425
|
/**
|
|
426
|
-
* The value to compare against the attribute key; supports string, number, or
|
|
426
|
+
* The value to compare against the attribute key; supports string, number, boolean, or array of string types.
|
|
427
427
|
*/
|
|
428
|
-
value: string | number | boolean;
|
|
428
|
+
value: string | number | boolean | string[];
|
|
429
429
|
};
|
|
430
430
|
/**
|
|
431
431
|
* Combine multiple filters using and or or.
|
package/dist/internal/index.js
CHANGED
|
@@ -1632,6 +1632,7 @@ var OpenAIEmbeddingModel = class {
|
|
|
1632
1632
|
fetch: this.config.fetch
|
|
1633
1633
|
});
|
|
1634
1634
|
return {
|
|
1635
|
+
warnings: [],
|
|
1635
1636
|
embeddings: response.data.map((item) => item.embedding),
|
|
1636
1637
|
usage: response.usage ? { tokens: response.usage.prompt_tokens } : void 0,
|
|
1637
1638
|
response: { headers: responseHeaders, body: rawValue }
|
|
@@ -3536,8 +3537,8 @@ var import_provider_utils26 = require("@ai-sdk/provider-utils");
|
|
|
3536
3537
|
var import_v419 = require("zod/v4");
|
|
3537
3538
|
var comparisonFilterSchema = import_v419.z.object({
|
|
3538
3539
|
key: import_v419.z.string(),
|
|
3539
|
-
type: import_v419.z.enum(["eq", "ne", "gt", "gte", "lt", "lte"]),
|
|
3540
|
-
value: import_v419.z.union([import_v419.z.string(), import_v419.z.number(), import_v419.z.boolean()])
|
|
3540
|
+
type: import_v419.z.enum(["eq", "ne", "gt", "gte", "lt", "lte", "in", "nin"]),
|
|
3541
|
+
value: import_v419.z.union([import_v419.z.string(), import_v419.z.number(), import_v419.z.boolean(), import_v419.z.array(import_v419.z.string())])
|
|
3541
3542
|
});
|
|
3542
3543
|
var compoundFilterSchema = import_v419.z.object({
|
|
3543
3544
|
type: import_v419.z.enum(["and", "or"]),
|