@ai-sdk/openai 3.0.88 → 3.0.89

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.
@@ -5122,7 +5122,10 @@ var webSearchArgsSchema = lazySchema23(
5122
5122
  () => zodSchema23(
5123
5123
  z25.object({
5124
5124
  externalWebAccess: z25.boolean().optional(),
5125
- filters: z25.object({ allowedDomains: z25.array(z25.string()).optional() }).optional(),
5125
+ filters: z25.object({
5126
+ allowedDomains: z25.array(z25.string()).optional(),
5127
+ blockedDomains: z25.array(z25.string()).optional()
5128
+ }).optional(),
5126
5129
  searchContextSize: z25.enum(["low", "medium", "high"]).optional(),
5127
5130
  userLocation: z25.object({
5128
5131
  type: z25.literal("approximate"),
@@ -5332,7 +5335,10 @@ async function prepareResponsesTools({
5332
5335
  });
5333
5336
  openaiTools.push({
5334
5337
  type: "web_search",
5335
- filters: args.filters != null ? { allowed_domains: args.filters.allowedDomains } : void 0,
5338
+ filters: args.filters != null ? {
5339
+ allowed_domains: args.filters.allowedDomains,
5340
+ blocked_domains: args.filters.blockedDomains
5341
+ } : void 0,
5336
5342
  external_web_access: args.externalWebAccess,
5337
5343
  search_context_size: args.searchContextSize,
5338
5344
  user_location: args.userLocation