MCPcopy Index your code
hub / github.com/getagentseal/codeburn / getShortModelName

Function getShortModelName

src/models.ts:821–833  ·  view source on GitHub ↗
(model: string)

Source from the content-addressed store, hash-verified

819}
820
821export function getShortModelName(model: string): string {
822 if (autoModelNames[model]) return autoModelNames[model]
823 const canonical = resolveAlias(getCanonicalName(model))
824 const claude = deriveClaudeShortName(canonical)
825 if (claude) return claude
826 for (const [key, name] of SORTED_SHORT_NAMES) {
827 // Match on a version boundary, not a bare prefix: an unlisted future minor
828 // (e.g. gpt-5.6) must NOT collapse into the base "gpt-5" entry — it should
829 // fall through to its raw id rather than show a wrong name/tier.
830 if (canonical === key || canonical.startsWith(key + '-')) return name
831 }
832 return canonical
833}

Callers 15

buildSessionSummaryFunction · 0.85
renderOverviewFunction · 0.85
modelKeyFunction · 0.85
modelDisplayNameFunction · 0.85
modelDisplayNameFunction · 0.85
modelDisplayNameFunction · 0.85
getFriendlyGptNameFunction · 0.85
getDevinDisplayModelNameFunction · 0.85
modelDisplayNameFunction · 0.85
modelDisplayNameFunction · 0.85
modelDisplayNameFunction · 0.85

Calls 3

resolveAliasFunction · 0.85
getCanonicalNameFunction · 0.85
deriveClaudeShortNameFunction · 0.85

Tested by

no test coverage detected