Skip to content

Function: detectWebSearchProvider()

detectWebSearchProvider(modelId): WebSearchProvider | null

Detect the web-search provider family for an endpoint id, or null when the model is not one of the web-search-capable families. Anthropic (opus/sonnet/haiku) is intentionally excluded - it needs an MCP call shape this module doesn’t implement - so a Claude endpoint returns null and is treated as unsupported.

string

WebSearchProvider | null