| export const MODEL_ALIASES = [ |
| 'sonnet', |
| 'opus', |
| 'haiku', |
| 'best', |
| 'sonnet[1m]', |
| 'opus[1m]', |
| 'opusplan', |
| ] as const |
| export type ModelAlias = (typeof MODEL_ALIASES)[number] |
|
|
| export function isModelAlias(modelInput: string): modelInput is ModelAlias { |
| return MODEL_ALIASES.includes(modelInput as ModelAlias) |
| } |
|
|
| |
| |
| |
| |
| |
| export const MODEL_FAMILY_ALIASES = ['sonnet', 'opus', 'haiku'] as const |
|
|
| export function isModelFamilyAlias(model: string): boolean { |
| return (MODEL_FAMILY_ALIASES as readonly string[]).includes(model) |
| } |
|
|