(model: string)
| 90 | // however out of an abundance of caution, we do not enable any which are behind an experiment |
| 91 | |
| 92 | export 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 | |
| 114 | function vertexModelSupportsWebSearch(model: string): boolean { |
| 115 | const canonical = getCanonicalName(model) |
no test coverage detected