(model: string)
| 98 | } |
| 99 | |
| 100 | export function getSonnet1mExpTreatmentEnabled(model: string): boolean { |
| 101 | if (is1mContextDisabled()) { |
| 102 | return false |
| 103 | } |
| 104 | // Only applies to sonnet 4.6 without an explicit [1m] suffix |
| 105 | if (has1mContext(model)) { |
| 106 | return false |
| 107 | } |
| 108 | if (!getCanonicalName(model).includes('sonnet-4-6')) { |
| 109 | return false |
| 110 | } |
| 111 | return getGlobalConfig().clientDataCache?.['coral_reef_sonnet'] === 'true' |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * Calculate context window usage percentage from token usage data. |
no test coverage detected