mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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_group,
|
||||||
model,
|
model,
|
||||||
DATE_TRUNC('day', "startTime")::DATE AS day,
|
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
|
FROM
|
||||||
"LiteLLM_SpendLogs"
|
"LiteLLM_SpendLogs"
|
||||||
WHERE
|
WHERE
|
||||||
|
@ -10196,7 +10196,7 @@ async def model_metrics(
|
||||||
model,
|
model,
|
||||||
day
|
day
|
||||||
HAVING
|
HAVING
|
||||||
SUM(total_tokens) > 0
|
SUM(completion_tokens) > 0
|
||||||
ORDER BY
|
ORDER BY
|
||||||
avg_latency_per_token DESC;
|
avg_latency_per_token DESC;
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue