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

Function getModelDisplayName

lib/constants/cliModels.ts:65–83  ·  view source on GitHub ↗
(cli: string | null | undefined, modelId?: string | null)

Source from the content-addressed store, hash-verified

63}
64
65export function getModelDisplayName(cli: string | null | undefined, modelId?: string | null): string {
66 if (!cli) {
67 return getClaudeModelDisplayName(normalizeClaudeModelId(modelId));
68 }
69
70 switch (cli.toLowerCase()) {
71 case 'codex':
72 return getCodexModelDisplayName(modelId);
73 case 'cursor':
74 return getCursorModelDisplayName(modelId);
75 case 'qwen':
76 return getQwenModelDisplayName(modelId);
77 case 'glm':
78 return getGLMModelDisplayName(modelId);
79 case 'claude':
80 default:
81 return getClaudeModelDisplayName(normalizeClaudeModelId(modelId));
82 }
83}
84
85export function getModelDefinitionsForCli(cli: string | null | undefined): ModelDefinition[] {
86 if (!cli) {

Callers 3

formatCliInfoFunction · 0.90
HomePageFunction · 0.90
ChatPageFunction · 0.90

Calls 6

normalizeClaudeModelIdFunction · 0.90
getCodexModelDisplayNameFunction · 0.90
getQwenModelDisplayNameFunction · 0.90
getGLMModelDisplayNameFunction · 0.90

Tested by

no test coverage detected