@ai-sdk/openai 3.0.0-beta.64 → 3.0.0-beta.65

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,11 @@
1
1
  # @ai-sdk/openai
2
2
 
3
+ ## 3.0.0-beta.65
4
+
5
+ ### Patch Changes
6
+
7
+ - 38a4035: added support for external_web_access parameter on web_search tool
8
+
3
9
  ## 3.0.0-beta.64
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -78,6 +78,12 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
78
78
  name: string;
79
79
  }>;
80
80
  }, {
81
+ /**
82
+ * Whether to use external web access for fetching live content.
83
+ * - true: Fetch live web content (default)
84
+ * - false: Use cached/indexed results
85
+ */
86
+ externalWebAccess?: boolean;
81
87
  /**
82
88
  * Filters for the search.
83
89
  */
package/dist/index.d.ts CHANGED
@@ -78,6 +78,12 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
78
78
  name: string;
79
79
  }>;
80
80
  }, {
81
+ /**
82
+ * Whether to use external web access for fetching live content.
83
+ * - true: Fetch live web content (default)
84
+ * - false: Use cached/indexed results
85
+ */
86
+ externalWebAccess?: boolean;
81
87
  /**
82
88
  * Filters for the search.
83
89
  */
package/dist/index.js CHANGED
@@ -1917,6 +1917,7 @@ var import_v413 = require("zod/v4");
1917
1917
  var webSearchArgsSchema = (0, import_provider_utils18.lazySchema)(
1918
1918
  () => (0, import_provider_utils18.zodSchema)(
1919
1919
  import_v413.z.object({
1920
+ externalWebAccess: import_v413.z.boolean().optional(),
1920
1921
  filters: import_v413.z.object({ allowedDomains: import_v413.z.array(import_v413.z.string()).optional() }).optional(),
1921
1922
  searchContextSize: import_v413.z.enum(["low", "medium", "high"]).optional(),
1922
1923
  userLocation: import_v413.z.object({
@@ -3289,6 +3290,7 @@ async function prepareResponsesTools({
3289
3290
  openaiTools2.push({
3290
3291
  type: "web_search",
3291
3292
  filters: args.filters != null ? { allowed_domains: args.filters.allowedDomains } : void 0,
3293
+ external_web_access: args.externalWebAccess,
3292
3294
  search_context_size: args.searchContextSize,
3293
3295
  user_location: args.userLocation
3294
3296
  });
@@ -4989,7 +4991,7 @@ var OpenAITranscriptionModel = class {
4989
4991
  };
4990
4992
 
4991
4993
  // src/version.ts
4992
- var VERSION = true ? "3.0.0-beta.64" : "0.0.0-test";
4994
+ var VERSION = true ? "3.0.0-beta.65" : "0.0.0-test";
4993
4995
 
4994
4996
  // src/openai-provider.ts
4995
4997
  function createOpenAI(options = {}) {