diff --git a/apps/fabro-web/app/routes/run-billing.tsx b/apps/fabro-web/app/routes/run-billing.tsx index de82fc36a..99f7a5c56 100644 --- a/apps/fabro-web/app/routes/run-billing.tsx +++ b/apps/fabro-web/app/routes/run-billing.tsx @@ -22,6 +22,14 @@ function isInFlight(stage: RunBillingStage): boolean { return stage.state != null && IN_FLIGHT_STAGE_STATES.has(stage.state); } +function hasBillableUsage(row: MappedStageRow): boolean { + return ( + (row.inputTokens ?? 0) > 0 || + (row.outputTokens ?? 0) > 0 || + (row.totalUsdMicros ?? 0) > 0 + ); +} + interface MappedStageRow { stage: string; model: string | null; @@ -136,7 +144,7 @@ export default function RunBilling({ params }: { params: { id: string } }) {
- {rows.map((row) => ( + {rows.filter(hasBillableUsage).map((row) => (