mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
fix(proxy_server.py): fix latency calc for avg output token
This commit is contained in:
parent
e252daaf2b
commit
02598ae988
1 changed files with 1 additions and 1 deletions
|
|
@ -10184,7 +10184,7 @@ async def model_metrics(
|
|||
model_group,
|
||||
model,
|
||||
DATE_TRUNC('day', "startTime")::DATE AS day,
|
||||
AVG(EXTRACT(epoch FROM ("endTime" - "startTime"))) / SUM(completion_tokens) AS avg_latency_per_token
|
||||
AVG(EXTRACT(epoch FROM ("endTime" - "startTime")) / "completion_tokens") AS avg_latency_per_token
|
||||
FROM
|
||||
"LiteLLM_SpendLogs"
|
||||
WHERE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue