From 7af02f64660a0671299d4d3d8906c9112d73c607 Mon Sep 17 00:00:00 2001 From: inference-bot Date: Thu, 1 Oct 2026 15:56:53 -0600 Subject: [PATCH] =?UTF-8?q?Model=20aggregation:=20order=20by=20requests=20?= =?UTF-8?q?(usage)=20not=20spend=20=E2=80=94=20matches=20leaderboard=20bar?= =?UTF-8?q?s=20and=20member-facing=20intent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 2b34be1..c354fc6 100644 --- a/app/main.py +++ b/app/main.py @@ -266,7 +266,7 @@ def aggregate_model_usage(days: int = 0, team_id: str | None = None) -> dict: FROM "LiteLLM_SpendLogs" {where_sql} GROUP BY 1 - ORDER BY 2 DESC + ORDER BY requests DESC """ conn = _pg_connect()