@ai-sdk/openai 2.0.0-beta.14 → 2.0.0-beta.15

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,14 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 2.0.0-beta.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 9943464: feat(openai): add file_search_call.results support to include parameter
8
+ - Updated dependencies [27deb4d]
9
+ - @ai-sdk/provider@2.0.0-beta.2
10
+ - @ai-sdk/provider-utils@3.0.0-beta.9
11
+
3
12
  ## 2.0.0-beta.14
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -18,7 +18,7 @@ declare const openaiTools: {
18
18
  vectorStoreIds?: string[];
19
19
  maxNumResults?: number;
20
20
  ranking?: {
21
- ranker?: "auto" | "keyword" | "semantic";
21
+ ranker?: "auto" | "default-2024-08-21";
22
22
  };
23
23
  filters?: {
24
24
  key: string;
@@ -85,6 +85,7 @@ declare const openaiResponsesProviderOptionsSchema: z.ZodObject<{
85
85
  }>>>;
86
86
  include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
87
87
  "reasoning.encrypted_content": "reasoning.encrypted_content";
88
+ "file_search_call.results": "file_search_call.results";
88
89
  }>>>>;
89
90
  }, z.core.$strip>;
90
91
  type OpenAIResponsesProviderOptions = z.infer<typeof openaiResponsesProviderOptionsSchema>;
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ declare const openaiTools: {
18
18
  vectorStoreIds?: string[];
19
19
  maxNumResults?: number;
20
20
  ranking?: {
21
- ranker?: "auto" | "keyword" | "semantic";
21
+ ranker?: "auto" | "default-2024-08-21";
22
22
  };
23
23
  filters?: {
24
24
  key: string;
@@ -85,6 +85,7 @@ declare const openaiResponsesProviderOptionsSchema: z.ZodObject<{
85
85
  }>>>;
86
86
  include: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
87
87
  "reasoning.encrypted_content": "reasoning.encrypted_content";
88
+ "file_search_call.results": "file_search_call.results";
88
89
  }>>>>;
89
90
  }, z.core.$strip>;
90
91
  type OpenAIResponsesProviderOptions = z.infer<typeof openaiResponsesProviderOptionsSchema>;
package/dist/index.js CHANGED
@@ -363,7 +363,7 @@ var fileSearchArgsSchema = import_v43.z.object({
363
363
  * Ranking options for the search.
364
364
  */
365
365
  ranking: import_v43.z.object({
366
- ranker: import_v43.z.enum(["auto", "keyword", "semantic"]).optional()
366
+ ranker: import_v43.z.enum(["auto", "default-2024-08-21"]).optional()
367
367
  }).optional(),
368
368
  /**
369
369
  * A filter to apply based on file attributes.
@@ -3073,7 +3073,7 @@ var openaiResponsesProviderOptionsSchema = import_v414.z.object({
3073
3073
  instructions: import_v414.z.string().nullish(),
3074
3074
  reasoningSummary: import_v414.z.string().nullish(),
3075
3075
  serviceTier: import_v414.z.enum(["auto", "flex", "priority"]).nullish(),
3076
- include: import_v414.z.array(import_v414.z.enum(["reasoning.encrypted_content"])).nullish()
3076
+ include: import_v414.z.array(import_v414.z.enum(["reasoning.encrypted_content", "file_search_call.results"])).nullish()
3077
3077
  });
3078
3078
 
3079
3079
  // src/openai-speech-model.ts