Skip to content

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

Open
tsuzaki430 wants to merge 5 commits intovercel:mainfrom
tsuzaki430:tsuz/azure-web-search
Open

feat(provider/azure): web search tool in the Azure OpenAI Responses API.#13708
tsuzaki430 wants to merge 5 commits intovercel:mainfrom
tsuzaki430:tsuz/azure-web-search

Conversation

@tsuzaki430
Copy link
Collaborator

@tsuzaki430 tsuzaki430 commented Mar 21, 2026

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

  • Tests have been added / updated (for bug fixes / features)
  • Documentation has been added / updated (for bug fixes / features)
  • A patch changeset for relevant packages has been added (for bug fixes / features - run pnpm changeset in the project root)
  • I have reviewed this pull request (self-review)

Future Work

Related Issues

@tigent tigent bot added ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation feature New feature or request provider/azure Issues related to the @ai-sdk/azure provider provider/openai Issues related to the @ai-sdk/openai provider labels Mar 21, 2026
@tsuzaki430 tsuzaki430 changed the title feat(provider/azure): web search tool feat(provider/azure): web search tool in the Azure OpenAI Responses API. Mar 21, 2026
@tsuzaki430 tsuzaki430 marked this pull request as ready for review March 21, 2026 13:25
@tsuzaki430
Copy link
Collaborator Author

I have reviewed this pull request (self-review)

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

Labels

ai/provider related to a provider package. Must be assigned together with at least one `provider/*` label documentation Improvements or additions to documentation feature New feature or request provider/azure Issues related to the @ai-sdk/azure provider provider/openai Issues related to the @ai-sdk/openai provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant