(type: TaskType)
| 165 | ]; |
| 166 | |
| 167 | export function defaultModelForType(type: TaskType): string { |
| 168 | const match = MODEL_CATALOG.find(m => m.defaultFor?.includes(type)); |
| 169 | if (!match) |
| 170 | throw new Error(`MODEL_CATALOG missing default for TaskType "${type}"`); |
| 171 | return match.slug; |
| 172 | } |
| 173 | |
| 174 | export function isKnownModel(slug: string): boolean { |
| 175 | return MODEL_CATALOG.some(m => m.slug === slug); |
no outgoing calls
no test coverage detected