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

Function isModelAlias

src/utils/model/aliases.ts:12–14  ·  view source on GitHub ↗
(modelInput: string)

Source from the content-addressed store, hash-verified

10export type ModelAlias = (typeof MODEL_ALIASES)[number]
11
12export function isModelAlias(modelInput: string): modelInput is ModelAlias {
13 return MODEL_ALIASES.includes(modelInput as ModelAlias)
14}
15
16/**
17 * Bare model family aliases that act as wildcards in the availableModels allowlist.

Callers 5

modelBelongsToFamilyFunction · 0.85
isModelAllowedFunction · 0.85
renderModelSettingFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected