Skip to content

Backport: feat(provider/azure): web search tool in the Azure OpenAI Responses API.#15698

Merged
aayush-kapoor merged 1 commit into
release-v6.0from
backport-pr-13708-to-release-v6.0
May 29, 2026
Merged

Backport: feat(provider/azure): web search tool in the Azure OpenAI Responses API.#15698
aayush-kapoor merged 1 commit into
release-v6.0from
backport-pr-13708-to-release-v6.0

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This is an automated backport of #13708 to the release-v6.0 branch. FYI @tsuzaki430

…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>
@github-actions github-actions Bot enabled auto-merge (squash) May 28, 2026 23:47
auto-merge was automatically disabled May 28, 2026 23:56

Pull request was closed

@aayush-kapoor aayush-kapoor reopened this May 28, 2026
@aayush-kapoor aayush-kapoor enabled auto-merge (squash) May 29, 2026 00:00
@aayush-kapoor aayush-kapoor merged commit c679fec into release-v6.0 May 29, 2026
48 checks passed
@aayush-kapoor aayush-kapoor deleted the backport-pr-13708-to-release-v6.0 branch May 29, 2026 00:03
@github-actions
Copy link
Copy Markdown
Contributor Author

🚀 Published in:

Package Version
@ai-sdk/azure 3.0.68 github npm
@ai-sdk/openai 3.0.67 github npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant