(id?: string | null)
| 92 | } |
| 93 | |
| 94 | export 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 | } |
no test coverage detected