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

Function getCodexModelDisplayName

lib/constants/codexModels.ts:94–102  ·  view source on GitHub ↗
(id?: string | null)

Source from the content-addressed store, hash-verified

92}
93
94export function getCodexModelDisplayName(id?: string | null): string {
95 if (!id) {
96 return CODEX_MODEL_DEFINITIONS.find((model) => model.id === CODEX_DEFAULT_MODEL)?.name ?? CODEX_DEFAULT_MODEL;
97 }
98
99 const normalized = normalizeCodexModelId(id);
100 const match = CODEX_MODEL_DEFINITIONS.find((model) => model.id === normalized);
101 return match?.name ?? normalized;
102}

Callers 2

executeCodexFunction · 0.90
getModelDisplayNameFunction · 0.90

Calls 1

normalizeCodexModelIdFunction · 0.85

Tested by

no test coverage detected