mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
ui - fix latency analytics completion_tokens
This commit is contained in:
parent
dc8480a5e9
commit
e252daaf2b
1 changed files with 2 additions and 2 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(total_tokens) AS avg_latency_per_token
|
||||
AVG(EXTRACT(epoch FROM ("endTime" - "startTime"))) / SUM(completion_tokens) AS avg_latency_per_token
|
||||
FROM
|
||||
"LiteLLM_SpendLogs"
|
||||
WHERE
|
||||
|
@ -10196,7 +10196,7 @@ async def model_metrics(
|
|||
model,
|
||||
day
|
||||
HAVING
|
||||
SUM(total_tokens) > 0
|
||||
SUM(completion_tokens) > 0
|
||||
ORDER BY
|
||||
avg_latency_per_token DESC;
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue