MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / has1mContext

Function has1mContext

restored-src/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 2

is1mContextDisabledFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected