Skip to content

Commit 721f812

Browse files
t3dotggclaude
andcommitted
feat(web): promote cache savings to the metric row
Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent ccad7ce commit 721f812

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎apps/web/src/components/usage/UsagePage.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,13 @@ export function UsagePage() {
212212
detail={`includes ${formatTokens(merged.reasoningTokens)} reasoning`}
213213
/>
214214
<Metric
215-
label="Responses"
216-
value={formatCount(merged.records)}
217-
detail={`${formatCount(merged.sessions)} sessions`}
215+
label="Cache savings"
216+
value={formatUsd(merged.costQuality.cacheSavingsUsd)}
217+
detail={
218+
merged.costUsd > 0
219+
? `${(merged.costQuality.cacheSavingsUsd / merged.costUsd).toFixed(1)}x the raw token cost`
220+
: "vs full input rates"
221+
}
218222
/>
219223
</section>
220224

0 commit comments

Comments
 (0)