(model: string)
| 51 | // @[MODEL LAUNCH]: Add the new model to the allowlist if it supports 'max' effort. |
| 52 | // Per API docs, 'max' is Opus 4.6 only for public models — other models return an error. |
| 53 | export function modelSupportsMaxEffort(model: string): boolean { |
| 54 | const supported3P = get3PModelCapabilityOverride(model, 'max_effort') |
| 55 | if (supported3P !== undefined) { |
| 56 | return supported3P |
| 57 | } |
| 58 | if (model.toLowerCase().includes('opus-4-6')) { |
| 59 | return true |
| 60 | } |
| 61 | if (process.env.USER_TYPE === 'ant' && resolveAntModel(model)) { |
| 62 | return true |
| 63 | } |
| 64 | return false |
| 65 | } |
| 66 | |
| 67 | export function isEffortLevel(value: string): value is EffortLevel { |
| 68 | return (EFFORT_LEVELS as readonly string[]).includes(value) |
no test coverage detected