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

Function getDefaultModelForCli

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

Source from the content-addressed store, hash-verified

36};
37
38export function getDefaultModelForCli(cli: string | null | undefined): string {
39 if (!cli) {
40 return CLAUDE_DEFAULT_MODEL;
41 }
42 const normalized = cli.toLowerCase() as CLIKey;
43 return DEFAULT_MODELS[normalized] ?? CLAUDE_DEFAULT_MODEL;
44}
45
46export function normalizeModelId(cli: string | null | undefined, model?: string | null): string {
47 if (!cli) {

Callers 15

createProjectFunction · 0.90
settings.tsFile · 0.90
initializeNextJsProjectFunction · 0.90
applyChangesFunction · 0.90
initializeNextJsProjectFunction · 0.90
applyChangesFunction · 0.90
initializeNextJsProjectFunction · 0.90
applyChangesFunction · 0.90
HomePageFunction · 0.90
handleAssistantChangeFunction · 0.90
POSTFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected