@ai-sdk/openai 2.0.79 → 2.0.81

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.81
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ef6d784]
8
+ - @ai-sdk/provider-utils@3.0.19
9
+
10
+ ## 2.0.80
11
+
12
+ ### Patch Changes
13
+
14
+ - 707a163: feat(openai): additional settings for file search tool
15
+
3
16
  ## 2.0.79
4
17
 
5
18
  ### 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 boolean types.
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 boolean types.
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"]),
@@ -4541,7 +4541,7 @@ var OpenAITranscriptionModel = class {
4541
4541
  };
4542
4542
 
4543
4543
  // src/version.ts
4544
- var VERSION = true ? "2.0.79" : "0.0.0-test";
4544
+ var VERSION = true ? "2.0.81" : "0.0.0-test";
4545
4545
 
4546
4546
  // src/openai-provider.ts
4547
4547
  function createOpenAI(options = {}) {