MCPcopy
hub / github.com/codeaashu/claude-code / getCanonicalName

Function getCanonicalName

src/utils/model/model.ts:279–283  ·  view source on GitHub ↗
(fullModelName: ModelName)

Source from the content-addressed store, hash-verified

277 * @returns The short name (e.g., 'claude-3-5-haiku') if found, or the original name if no mapping exists
278 */
279export function getCanonicalName(fullModelName: ModelName): ModelShortName {
280 // Resolve overridden model IDs (e.g. Bedrock ARNs) back to canonical names.
281 // resolved is always a 1P-format ID, so firstPartyNameToCanonical can handle it.
282 return firstPartyNameToCanonical(resolveOverriddenModel(fullModelName))
283}
284
285// @[MODEL LAUNCH]: Update the default model description strings shown to users.
286export function getClaudeAiUserDefaultModelDescription(

Callers 15

formatModelUsageFunction · 0.85
modelSupportsThinkingFunction · 0.85
getEnhancedPRAttributionFunction · 0.85
modelSupportsISPFunction · 0.85
modelSupportsAutoModeFunction · 0.85
betas.tsFile · 0.85
modelSupports1MFunction · 0.85

Calls 2

resolveOverriddenModelFunction · 0.85

Tested by

no test coverage detected