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

Function checkSonnet1mAccess

src/utils/model/check1mAccess.ts:60–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60export function checkSonnet1mAccess(): boolean {
61 if (is1mContextDisabled()) {
62 return false
63 }
64
65 if (isClaudeAISubscriber()) {
66 // Subscribers have access if extra usage is enabled for their account
67 return isExtraUsageEnabled()
68 }
69
70 // Non-subscribers (API/PAYG) have access
71 return true
72}
73

Callers 3

getAvailableUpgradeFunction · 0.85
getModelOptionsBaseFunction · 0.85
isSonnet1mUnavailableFunction · 0.85

Calls 3

is1mContextDisabledFunction · 0.85
isExtraUsageEnabledFunction · 0.85
isClaudeAISubscriberFunction · 0.50

Tested by

no test coverage detected