Model aggregation: order by requests (usage) not spend — matches leaderboard bars and member-facing intent
This commit is contained in:
1 parent
19c04f37fa
commit
7af02f6466
1 file changed
+1
-1
+1
-1
@@ -266,7 +266,7 @@ def aggregate_model_usage(days: int = 0, team_id: str | None = None) -> dict:
|
|||||||
FROM "LiteLLM_SpendLogs"
|
FROM "LiteLLM_SpendLogs"
|
||||||
{where_sql}
|
{where_sql}
|
||||||
GROUP BY 1
|
GROUP BY 1
|
||||||
ORDER BY 2 DESC
|
ORDER BY requests DESC
|
||||||
"""
|
"""
|
||||||
|
|
||||||
conn = _pg_connect()
|
conn = _pg_connect()
|
||||||
|
|||||||
Reference in new issue
Block a user