mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: rename captured -> allHeaders missed one reference
This commit is contained in:
parent
7eb2f81d9e
commit
624eb67b42
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue