From b899ac8559f8ae4978cbf78ea1c0c00ec38f1fbf Mon Sep 17 00:00:00 2001 From: alpha-nerd-nomyo Date: Wed, 1 Apr 2026 18:10:48 +0200 Subject: [PATCH] feat: add all models to TPS graph in dashboard --- static/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index cac7f8d..e53e629 100644 --- a/static/index.html +++ b/static/index.html @@ -1092,7 +1092,9 @@ function renderTimeSeriesChart(timeSeriesData, chart, minutes) { function updateTpsChart(payload) { const tokens = payload.token_usage_counts || {}; const perModelTokens = {}; - psRows.forEach((_, model) => { + const allModels = new Set(); + for (const ep in tokens) for (const model in tokens[ep]) allModels.add(model); + allModels.forEach(model => { let total = 0; for (const ep in tokens) total += tokens[ep]?.[model] || 0; // Normalise against the first-seen cumulative total so history