@ai-sdk/azure 4.0.22 → 4.0.24

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,23 @@
1
1
  # @ai-sdk/azure
2
2
 
3
+ ## 4.0.24
4
+
5
+ ### Patch Changes
6
+
7
+ - 96a237d: Add blocked domain filters to the OpenAI and Azure Responses API web search tools.
8
+ - Updated dependencies [96a237d]
9
+ - @ai-sdk/openai@4.0.23
10
+
11
+ ## 4.0.23
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [0c464d9]
16
+ - Updated dependencies [c49380c]
17
+ - @ai-sdk/provider-utils@5.0.14
18
+ - @ai-sdk/openai@4.0.22
19
+ - @ai-sdk/deepseek@3.0.15
20
+
3
21
  ## 4.0.22
4
22
 
5
23
  ### Patch Changes
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ var azureOpenaiTools = {
37
37
  };
38
38
 
39
39
  // src/version.ts
40
- var VERSION = true ? "4.0.22" : "0.0.0-test";
40
+ var VERSION = true ? "4.0.24" : "0.0.0-test";
41
41
 
42
42
  // src/azure-openai-provider.ts
43
43
  function isAzureOpenAIBaseURL(baseURL) {
package/docs/04-azure.mdx CHANGED
@@ -416,6 +416,7 @@ const result = await generateText({
416
416
  },
417
417
  filters: {
418
418
  allowedDomains: ['sfchronicle.com', 'sfgate.com'],
419
+ blockedDomains: ['example.com'],
419
420
  },
420
421
  }),
421
422
  },
@@ -442,7 +443,10 @@ The web search tool supports the following configuration options:
442
443
  - **searchContextSize** _'low' | 'medium' | 'high'_ - Controls the amount of context used for the search. Higher values provide more comprehensive results but may have higher latency and cost.
443
444
  - **userLocation** - Optional location information to provide geographically relevant results. Includes `type` (always `'approximate'`), `country`, `city`, `region`, and `timezone`.
444
445
  - **filters** - Optional filter configuration to restrict search results.
445
- - **allowedDomains** _string[]_ - Array of allowed domains for the search. Subdomains of the provided domains are automatically included.
446
+ - **allowedDomains** _string[]_ - Up to 100 allowed domains for the search.
447
+ - **blockedDomains** _string[]_ - Up to 100 blocked domains for the search.
448
+
449
+ Omit the HTTP or HTTPS prefix from domain filters. Subdomains of configured domains are automatically included or excluded.
446
450
 
447
451
  For detailed information on configuration options see the [Azure OpenAI Web Search Tool documentation](https://learn.microsoft.com/en-us/azure/foundry/openai/how-to/web-search).
448
452
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/azure",
3
- "version": "4.0.22",
3
+ "version": "4.0.24",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -29,10 +29,10 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@ai-sdk/deepseek": "3.0.14",
33
- "@ai-sdk/openai": "4.0.21",
32
+ "@ai-sdk/deepseek": "3.0.15",
33
+ "@ai-sdk/openai": "4.0.23",
34
34
  "@ai-sdk/provider": "4.0.4",
35
- "@ai-sdk/provider-utils": "5.0.13"
35
+ "@ai-sdk/provider-utils": "5.0.14"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "22.19.19",