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

Function normalizeModelForCli

lib/utils/cliOptions.ts:63–70  ·  view source on GitHub ↗
(
  cli: string | null | undefined,
  model?: string | null,
  fallback: ActiveCliId = DEFAULT_ACTIVE_CLI
)

Source from the content-addressed store, hash-verified

61};
62
63export const normalizeModelForCli = (
64 cli: string | null | undefined,
65 model?: string | null,
66 fallback: ActiveCliId = DEFAULT_ACTIVE_CLI
67): string => {
68 const sanitized = sanitizeActiveCli(cli, fallback);
69 return normalizeModelId(sanitized, model);
70};
71
72export interface ModelAvailabilityEntry {
73 available?: boolean;

Callers 3

HomePageFunction · 0.90
sanitizeModelFunction · 0.90
useCLIFunction · 0.90

Calls 2

normalizeModelIdFunction · 0.90
sanitizeActiveCliFunction · 0.85

Tested by

no test coverage detected