Skip to content

[v6.0] feat: support blocked domains in OpenAI web search - #18035

Merged
lgrammel merged 1 commit into
release-v6.0from
backport-v6.0/17898-1
Jul 28, 2026
Merged

[v6.0] feat: support blocked domains in OpenAI web search#18035
lgrammel merged 1 commit into
release-v6.0from
backport-v6.0/17898-1

Conversation

@ai-sdk-factory

Copy link
Copy Markdown
Contributor

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

Backport of #18033

Co-Authored-By: Lars Grammel 205036+lgrammel@users.noreply.github.com

## 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>
@lgrammel
lgrammel merged commit 23632b1 into release-v6.0 Jul 28, 2026
54 checks passed
@lgrammel
lgrammel deleted the backport-v6.0/17898-1 branch July 28, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant