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

Function getModelDefinitionsForCli

lib/constants/cliModels.ts:85–91  ·  view source on GitHub ↗
(cli: string | null | undefined)

Source from the content-addressed store, hash-verified

83}
84
85export function getModelDefinitionsForCli(cli: string | null | undefined): ModelDefinition[] {
86 if (!cli) {
87 return MODEL_DEFINITIONS.claude;
88 }
89 const normalized = cli.toLowerCase() as CLIKey;
90 return MODEL_DEFINITIONS[normalized] ?? MODEL_DEFINITIONS.claude;
91}

Callers 4

GlobalSettings.tsxFile · 0.90
cliOptions.tsFile · 0.90
buildActiveModelOptionsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected