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.
Parameters
Section titled “Parameters”modelId
Section titled “modelId”string
Returns
Section titled “Returns”WebSearchProvider | null