MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / normalizeModelName

Method normalizeModelName

chat/app.js:3321–3326  ·  view source on GitHub ↗

* Normalizes any stored model reference into the canonical display name * used throughout the UI. * * Accepts: * - A model ID (e.g. "openai/gpt-5.1-chat"), which is converted via * backend display-name overrides when available. * - Legacy aliases (e.g. "OpenAI: GPT-5.

(modelIdOrName)

Source from the content-addressed store, hash-verified

3319
3320 ${ticketCountNote ? `
3321 <p class="text-xs text-muted-foreground mb-3">
3322 ${ticketCountNote}
3323 </p>
3324 ` : ''}
3325
3326 <div class="mb-4 p-3 bg-muted/20 rounded-md border border-border">
3327 <code class="block font-mono text-xs text-foreground break-all text-center">${safeCode}</code>
3328 </div>
3329

Callers 15

initMethod · 0.95
createSessionMethod · 0.95
clearCurrentSessionMethod · 0.95
runMemoryAugmentFlowMethod · 0.95
regenerateResponseMethod · 0.95
sendMessageMethod · 0.95
inlineQuickAskMethod · 0.95

Calls 2

getCurrentSessionMethod · 0.95
getDisplayNameMethod · 0.80

Tested by

no test coverage detected