(model: string)
| 41 | |
| 42 | // @[MODEL LAUNCH]: Update this pattern if the new model supports 1M context |
| 43 | export function modelSupports1M(model: string): boolean { |
| 44 | if (is1mContextDisabled()) { |
| 45 | return false |
| 46 | } |
| 47 | const canonical = getCanonicalName(model) |
| 48 | return canonical.includes('claude-sonnet-4') || canonical.includes('opus-4-6') |
| 49 | } |
| 50 | |
| 51 | export function getContextWindowForModel( |
| 52 | model: string, |
no test coverage detected