(model?: string | null)
| 73 | ); |
| 74 | |
| 75 | export function normalizeQwenModelId(model?: string | null): QwenModelId { |
| 76 | if (!model) { |
| 77 | return QWEN_DEFAULT_MODEL; |
| 78 | } |
| 79 | const normalized = model.trim().toLowerCase().replace(/[\s_]+/g, '-'); |
| 80 | return QWEN_MODEL_ALIAS_MAP[normalized] ?? QWEN_DEFAULT_MODEL; |
| 81 | } |
| 82 | |
| 83 | export function getQwenModelDefinition(id: string): QwenModelDefinition | undefined { |
| 84 | return ( |
no outgoing calls
no test coverage detected