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

Function has1mContext

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

Source from the content-addressed store, hash-verified

33}
34
35export function has1mContext(model: string): boolean {
36 if (is1mContextDisabled()) {
37 return false
38 }
39 return /\[1m\]/i.test(model)
40}
41
42// @[MODEL LAUNCH]: Update this pattern if the new model supports 1M context
43export function modelSupports1M(model: string): boolean {

Callers 9

isBilledAsExtraUsageFunction · 0.85
betas.tsFile · 0.85
getContextWindowForModelFunction · 0.85
getCustomSonnetOptionFunction · 0.85
getCustomOpusOptionFunction · 0.85
renderModelNameFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Calls 1

is1mContextDisabledFunction · 0.85

Tested by

no test coverage detected