@ai-sdk/openai 2.0.71 → 2.0.72

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
+ ## 2.0.72
4
+
5
+ ### Patch Changes
6
+
7
+ - 53d2fcc: added support for external_web_access parameter on web_search tool
8
+
3
9
  ## 2.0.71
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -77,6 +77,12 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
77
77
  name: string;
78
78
  }>;
79
79
  }, {
80
+ /**
81
+ * Whether to use external web access for fetching live content.
82
+ * - true: Fetch live web content (default)
83
+ * - false: Use cached/indexed results
84
+ */
85
+ externalWebAccess?: boolean;
80
86
  /**
81
87
  * Filters for the search.
82
88
  */
package/dist/index.d.ts CHANGED
@@ -77,6 +77,12 @@ declare const webSearchToolFactory: _ai_sdk_provider_utils.ProviderDefinedToolFa
77
77
  name: string;
78
78
  }>;
79
79
  }, {
80
+ /**
81
+ * Whether to use external web access for fetching live content.
82
+ * - true: Fetch live web content (default)
83
+ * - false: Use cached/indexed results
84
+ */
85
+ externalWebAccess?: boolean;
80
86
  /**
81
87
  * Filters for the search.
82
88
  */
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({
@@ -3044,6 +3045,7 @@ async function prepareResponsesTools({
3044
3045
  openaiTools2.push({
3045
3046
  type: "web_search",
3046
3047
  filters: args.filters != null ? { allowed_domains: args.filters.allowedDomains } : void 0,
3048
+ external_web_access: args.externalWebAccess,
3047
3049
  search_context_size: args.searchContextSize,
3048
3050
  user_location: args.userLocation
3049
3051
  });
@@ -4528,7 +4530,7 @@ var OpenAITranscriptionModel = class {
4528
4530
  };
4529
4531
 
4530
4532
  // src/version.ts
4531
- var VERSION = true ? "2.0.71" : "0.0.0-test";
4533
+ var VERSION = true ? "2.0.72" : "0.0.0-test";
4532
4534
 
4533
4535
  // src/openai-provider.ts
4534
4536
  function createOpenAI(options = {}) {