diff --git a/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx b/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx index 754f2f7715..e1157f9e72 100644 --- a/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx +++ b/src/app/(dashboard)/dashboard/cache/components/CacheTrends.tsx @@ -5,9 +5,10 @@ import { useTranslations } from "next-intl"; export interface CacheTrendPoint { timestamp: string; requests: number; - hits: number; - misses: number; - hitRate: number; + cachedRequests: number; + inputTokens: number; + cachedTokens: number; + cacheCreationTokens: number; } interface CacheTrendsProps { @@ -27,7 +28,8 @@ export default function CacheTrends({ const trendData: CacheTrendPoint[] = data ?? []; const maxRequests = trendData.length > 0 ? Math.max(...trendData.map((p) => p.requests), 1) : 1; - const peakHitRate = trendData.length > 0 ? Math.max(...trendData.map((p) => p.hitRate)) : null; + const maxCachedRequests = + trendData.length > 0 ? Math.max(...trendData.map((p) => p.cachedRequests), 0) : 0; return (