From 624eb67b42f4fb6dc7fb7b91c8174fc5f26172f9 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Sat, 28 Feb 2026 15:32:38 -0800 Subject: [PATCH] fix: rename captured -> allHeaders missed one reference --- .../PerformanceDashboard/PerformanceDashboardView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/PerformanceDashboard/PerformanceDashboardView.tsx b/ui/litellm-dashboard/src/components/PerformanceDashboard/PerformanceDashboardView.tsx index 7a641670cb8..2fb33252d34 100644 --- a/ui/litellm-dashboard/src/components/PerformanceDashboard/PerformanceDashboardView.tsx +++ b/ui/litellm-dashboard/src/components/PerformanceDashboard/PerformanceDashboardView.tsx @@ -63,7 +63,7 @@ async function runTestRequest(accessToken: string, model: string, messages: { ro // Read overhead from captured map — forEach and get() can behave differently for exposed headers const overheadRaw = allHeaders["x-litellm-overhead-duration-ms"] ?? null; const overheadParsed = overheadRaw && overheadRaw !== "None" ? parseFloat(overheadRaw) : NaN; - const responseDurationRaw = captured["x-litellm-response-duration-ms"] ?? null; + const responseDurationRaw = allHeaders["x-litellm-response-duration-ms"] ?? null; const responseDurationParsed = responseDurationRaw && responseDurationRaw !== "None" ? parseFloat(responseDurationRaw) : NaN; // Prefer the proxy's measured total over wall clock (avoids network jitter inflating LLM API time) const proxyTotalMs = isNaN(responseDurationParsed) ? wallMs : Math.round(responseDurationParsed);