Backport: feat(provider/azure): web search tool in the Azure OpenAI Responses API.#15698
Merged
Merged
Conversation
…PI. (#13708) ## Background https://learn.microsoft.com/ja-jp/azure/foundry/openai/how-to/web-search `web_search` is now the recommended tool for Web search in the Azure OpenAI Responses API. The preview version of the web search tool (`web_search_preview`) while supported is not recommended. ## Summary Expose the web search tool in @ai-sdk/azure as `azure.tools.webSearch`. Changeing Azure provider documentation for the `webSearchPreview` to `webSearch` tool. Add examples in `examples/ai-functions`. ## Manual Verification ### examples/ai-functions - pnpm tsx src/generate-text/azure/responses-web-search.ts - pnpm tsx src/stream-text/azure/responses-web-search.ts ## Checklist <!-- Do not edit this list. Leave items unchecked that don't apply. If you need to track subtasks, create a new "## Tasks" section Please check if the PR fulfills the following requirements: --> - [ ] Tests have been added / updated (for bug fixes / features) - [x] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review) ## Future Work <!-- Feel free to mention things not covered by this PR that can be done in future PRs. Remove the section if it's not needed. --> ## Related Issues <!-- List related issues here, e.g. "Fixes #1234". Remove the section if it's not needed. --> --------- Co-authored-by: tsuzaki430 <tsuzaki430@users.noreply.github.com> Co-authored-by: Aayush Kapoor <83492835+aayush-kapoor@users.noreply.github.com> Co-authored-by: Aayush Kapoor <aayushkapoor34@gmail.com>
aayush-kapoor
approved these changes
May 28, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an automated backport of #13708 to the release-v6.0 branch. FYI @tsuzaki430