MCPcopy
hub / github.com/opactorai/Claudable / normalizeQwenModelId

Function normalizeQwenModelId

lib/constants/qwenModels.ts:75–81  ·  view source on GitHub ↗
(model?: string | null)

Source from the content-addressed store, hash-verified

73);
74
75export 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
83export function getQwenModelDefinition(id: string): QwenModelDefinition | undefined {
84 return (

Callers 3

executeQwenFunction · 0.90
normalizeModelIdFunction · 0.90
getQwenModelDisplayNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected