MCPcopy Create free account
hub / github.com/Icecubesaad/OpenLLM-Studio / ModelStatusIndicator

Function ModelStatusIndicator

src/components/ModelStatusIndicator.tsx:4–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { formatBytes } from '../lib/utils';
3
4export function ModelStatusIndicator() {
5 const { loadedModel, isLoading } = useLoadedModel();
6
7 if (isLoading) {
8 return (
9 <div className="text-[#B1ADA1] text-sm">
10 Checking...
11 </div>
12 );
13 }
14
15 if (!loadedModel) {
16 return (
17 <div className="text-[#B1ADA1] text-sm">
18 Idle
19 </div>
20 );
21 }
22
23 return (
24 <div className="text-white text-sm">
25 <span className="font-semibold">{loadedModel.name}</span>
26 <span className="text-[#B1ADA1] ml-2">
27 ({formatBytes(loadedModel.size)})
28 </span>
29 </div>
30 );
31}

Callers

nothing calls this directly

Calls 2

useLoadedModelFunction · 0.90
formatBytesFunction · 0.90

Tested by

no test coverage detected