diff --git a/packages/frontend/src/components/ui/CostToolTip.tsx b/packages/frontend/src/components/ui/CostToolTip.tsx index 2cc04587..27f93b97 100644 --- a/packages/frontend/src/components/ui/CostToolTip.tsx +++ b/packages/frontend/src/components/ui/CostToolTip.tsx @@ -113,12 +113,14 @@ export const CostToolTip: React.FC = ({ source, costMetadata, ); } else if (s === 'provider_reported') { + // Support both SSE `: cost` format (request_cost_usd) and usage.cost_details format + const reportedCost = data.request_cost_usd ?? data.cost_details?.total_cost; content = (
Source: Provider Reported
Cost: - ${formatRate(data.request_cost_usd)} + ${formatRate(reportedCost)} {data.cache_savings_usd !== undefined && ( <>