MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / modelDisplayName

Function modelDisplayName

graph-ui/src/llm/sidecar.ts:171–176  ·  view source on GitHub ↗
(modelPath: string)

Source from the content-addressed store, hash-verified

169 * einen anderen machen, und der Name ist das, was der Leser gegen das ADR haelt.
170 */
171export function modelDisplayName(modelPath: string): string {
172 const base = modelPath.split('/').pop() ?? modelPath;
173 const withoutExtension = base.replace(/\.gguf$/i, '');
174 const withoutQuant = withoutExtension.replace(/[-_.](?:Q\d+_[A-Z0-9_]+|F16|F32|BF16)$/i, '');
175 return withoutQuant.length > 0 ? withoutQuant : base;
176}
177
178/** Byte in eine Zeile, die ein Mensch liest. Basis 1024, wie jeder Modell-Downloader. */
179export function humanBytes(bytes: number): string {

Callers 3

sidecar.test.tsFile · 0.90
readPropsFunction · 0.85
readModelListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected