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

Function normalizeClaudeModelId

lib/constants/claudeModels.ts:100–104  ·  view source on GitHub ↗
(model?: string | null)

Source from the content-addressed store, hash-verified

98);
99
100export function normalizeClaudeModelId(model?: string | null): ClaudeModelId {
101 if (!model) return CLAUDE_DEFAULT_MODEL;
102 const normalized = model.trim().toLowerCase().replace(/[\s_]+/g, '-');
103 return CLAUDE_MODEL_ALIAS_MAP[normalized] ?? CLAUDE_DEFAULT_MODEL;
104}
105
106export function getClaudeModelDefinition(id: string): ClaudeModelDefinition | undefined {
107 return (

Callers 3

resolveModelIdFunction · 0.90
normalizeModelIdFunction · 0.90
getModelDisplayNameFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected