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

Function modelSupports1M

src/utils/context.ts:43–49  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

41
42// @[MODEL LAUNCH]: Update this pattern if the new model supports 1M context
43export 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
51export function getContextWindowForModel(
52 model: string,

Callers 2

getContextWindowForModelFunction · 0.85

Calls 2

is1mContextDisabledFunction · 0.85
getCanonicalNameFunction · 0.85

Tested by

no test coverage detected