MCPcopy Create free account
hub / github.com/Noumena-Network/code / has1mContext

Function has1mContext

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

Source from the content-addressed store, hash-verified

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

Callers 9

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