MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / formatShortModelDisplayName

Function formatShortModelDisplayName

apps/web/src/lib/format-model-name.ts:30–34  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

28export function formatModelRefName(model: { providerID: string; modelID: string }): string {
29 return formatShortModelName(`${model.providerID}/${model.modelID}`);
30}
31
32/**
33 * Strips "Provider: " prefix from a human-readable model display name.
34 *
35 * - `"Anthropic: Claude Opus 4.6"` → `"Claude Opus 4.6"`
36 * - `"Google: Gemini 2.5 Pro"` → `"Gemini 2.5 Pro"`
37 * - `"GPT-4o"` (no colon) → `"GPT-4o"`

Callers 6

ModelComboboxFunction · 0.90
NewSessionPanelFunction · 0.90
MobileToolbarPopoverFunction · 0.90
ChatInputFunction · 0.90
CloudChatPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected