diff --git a/frontend/src/pages/AgentsPage.tsx b/frontend/src/pages/AgentsPage.tsx index 650f79e3..71cd75fb 100644 --- a/frontend/src/pages/AgentsPage.tsx +++ b/frontend/src/pages/AgentsPage.tsx @@ -1566,38 +1566,39 @@ export function AgentsPage() { const energyKj = energyWh * 3.6; const fmtFlops = flops >= 1e15 ? `${(flops / 1e15).toFixed(1)} PFLOPs` : `${(flops / 1e12).toFixed(1)} TFLOPs`; const hasSavings = inTok + outTok > 0; - const boxStyle = { background: 'var(--color-bg-secondary)', border: '1px solid var(--color-border)' }; return ( -
-

Cloud Savings for Agent

-
-
-

{selectedAgent.total_runs ?? 0}

-

Total Queries

+
+

Cloud Savings for Agent

+
+
+

{selectedAgent.total_runs ?? 0}

+

Total Queries

-
-

{inTok}

-

Input Tokens

+
+

{inTok.toLocaleString()}

+

Input Tokens

-
-

{outTok}

-

Output Tokens

+
+

{outTok.toLocaleString()}

+

Output Tokens

{hasSavings && (<> -
-

{fmtFlops}

-

Compute

+
+
+

{fmtFlops}

+

Compute

-
-

{energyKj.toFixed(2)} kJ

-

Energy

+
+

{energyKj.toFixed(2)} kJ

+

Energy

+
{providers.map((p) => { const cost = (inTok / 1e6) * p.inPer1M + (outTok / 1e6) * p.outPer1M; return ( -
-

${cost.toFixed(4)}

-

{p.label}

+
+

${cost.toFixed(4)}

+

{p.label}

); })}