MCPcopy
hub / github.com/jamiepine/voicebox / formatSize

Function formatSize

app/src/components/ServerSettings/ModelManagement.tsx:389–393  ·  view source on GitHub ↗
(sizeMb?: number)

Source from the content-addressed store, hash-verified

387 });
388
389 const formatSize = (sizeMb?: number): string => {
390 if (!sizeMb) return t('models.unknownSize');
391 if (sizeMb < 1024) return `${sizeMb.toFixed(1)} MB`;
392 return `${(sizeMb / 1024).toFixed(2)} GB`;
393 };
394
395 const getModelState = (model: ModelStatus) => {
396 const isDownloading =

Callers 1

ModelManagementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected