[v6.0] feat: support blocked domains in OpenAI web search - #18035
Merged
Conversation
## Background Consumers need to exclude specified domains from OpenAI and Azure Responses API web searches for better source control. ## Summary Added typed filters.blockedDomains support to OpenAI and Azure webSearch tools and serialize it as filters.blocked_domains. ## Testing Added OpenAI and Azure type coverage plus blocked-only, combined-filter, and request-serialization runtime coverage. ## End-to-end Validation - Added and successfully ran a live OpenAI web-search example that blocks wikipedia.org and validates returned sources. ## Documentation Updated the OpenAI and Azure provider documentation with blockedDomains usage, limits, formatting, and subdomain behavior. ## Related Issues Fixes #17898 Co-Authored-By: Lars Grammel <205036+lgrammel@users.noreply.github.com> Co-authored-by: ai-sdk-factory <308175966+ai-sdk-factory@users.noreply.github.com> Co-authored-by: ecumene <6249465+ecumene@users.noreply.github.com>
1 task
lgrammel
approved these changes
Jul 28, 2026
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.
Background
Consumers need to exclude specified domains from OpenAI and Azure Responses API web searches for better source control.
Summary
Added typed filters.blockedDomains support to OpenAI and Azure webSearch tools and serialize it as filters.blocked_domains.
Testing
Added OpenAI and Azure type coverage plus blocked-only, combined-filter, and request-serialization runtime coverage.
End-to-end Validation
Documentation
Updated the OpenAI and Azure provider documentation with blockedDomains usage, limits, formatting, and subdomain behavior.
Related Issues
Fixes #17898
Backport of #18033
Co-Authored-By: Lars Grammel 205036+lgrammel@users.noreply.github.com