()
| 44 | |
| 45 | // @[MODEL LAUNCH]: Add check if the new model supports 1M context |
| 46 | export function checkOpus1mAccess(): boolean { |
| 47 | if (is1mContextDisabled()) { |
| 48 | return false |
| 49 | } |
| 50 | |
| 51 | if (isClaudeAISubscriber()) { |
| 52 | // Subscribers have access if extra usage is enabled for their account |
| 53 | return isExtraUsageEnabled() |
| 54 | } |
| 55 | |
| 56 | // Non-subscribers (API/PAYG) have access |
| 57 | return true |
| 58 | } |
| 59 | |
| 60 | export function checkSonnet1mAccess(): boolean { |
| 61 | if (is1mContextDisabled()) { |
no test coverage detected