forked from phoenix/litellm-mirror
Merge pull request #4021 from BerriAI/litellm_fix_div_byzero
[Admin UI] Analytics - fix div by 0 error on /model/metrics
This commit is contained in:
commit
de623df7da
1 changed files with 1 additions and 1 deletions
|
@ -11763,7 +11763,7 @@ async def model_metrics(
|
|||
model_group,
|
||||
model,
|
||||
DATE_TRUNC('day', "startTime")::DATE AS day,
|
||||
AVG(EXTRACT(epoch FROM ("endTime" - "startTime")) / "completion_tokens") AS avg_latency_per_token
|
||||
AVG(EXTRACT(epoch FROM ("endTime" - "startTime")) / NULLIF("completion_tokens", 0)) AS avg_latency_per_token
|
||||
FROM
|
||||
"LiteLLM_SpendLogs"
|
||||
WHERE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue