(model: string)
| 231 | return null; |
| 232 | } |
| 233 | function isKnownAlias(model: string): boolean { |
| 234 | return (MODEL_ALIASES as readonly string[]).includes(model.toLowerCase().trim()); |
| 235 | } |
| 236 | function isOpus1mUnavailable(model: string): boolean { |
| 237 | const m = model.toLowerCase(); |
| 238 | return !checkOpus1mAccess() && !isOpus1mMergeEnabled() && m.includes('opus') && m.includes('[1m]'); |