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

Function modelSupportsISP

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

Source from the content-addressed store, hash-verified

90// however out of an abundance of caution, we do not enable any which are behind an experiment
91
92export function modelSupportsISP(model: string): boolean {
93 const supported3P = get3PModelCapabilityOverride(
94 model,
95 'interleaved_thinking',
96 )
97 if (supported3P !== undefined) {
98 return supported3P
99 }
100 const canonical = getCanonicalName(model)
101 const provider = getAPIProvider()
102 // Foundry supports interleaved thinking for all models
103 if (provider === 'foundry') {
104 return true
105 }
106 if (provider === 'firstParty') {
107 return !canonical.includes('claude-3-')
108 }
109 return (
110 canonical.includes('claude-opus-4') || canonical.includes('claude-sonnet-4')
111 )
112}
113
114function vertexModelSupportsWebSearch(model: string): boolean {
115 const canonical = getCanonicalName(model)

Callers 1

betas.tsFile · 0.85

Calls 2

getCanonicalNameFunction · 0.85
getAPIProviderFunction · 0.85

Tested by

no test coverage detected