MCPcopy
hub / github.com/codeaashu/claude-code / vertexModelSupportsWebSearch

Function vertexModelSupportsWebSearch

src/utils/betas.ts:114–122  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

112}
113
114function vertexModelSupportsWebSearch(model: string): boolean {
115 const canonical = getCanonicalName(model)
116 // Web search only supported on Claude 4.0+ models on Vertex
117 return (
118 canonical.includes('claude-opus-4') ||
119 canonical.includes('claude-sonnet-4') ||
120 canonical.includes('claude-haiku-4')
121 )
122}
123
124// Context management is supported on Claude 4+ models
125export function modelSupportsContextManagement(model: string): boolean {

Callers 1

betas.tsFile · 0.85

Calls 1

getCanonicalNameFunction · 0.85

Tested by

no test coverage detected