From 1fe0e47802912639df231e03c08133d0cca96d66 Mon Sep 17 00:00:00 2001 From: inference-bot Date: Fri, 2 Oct 2026 22:04:54 -0600 Subject: [PATCH] Update code-comment example (green-r -> glm-5.3-flash) --- app/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index ef67890..bd7a40e 100644 --- a/app/main.py +++ b/app/main.py @@ -252,7 +252,7 @@ def aggregate_model_usage(days: int = 0, team_id: str | None = None) -> dict: `team_id` restricts to one member's team (used by the dashboard path). Prefers the `model_group` column, which carries our provider/model alias - (e.g. greenpt/green-r); falls back to `model` for pre-alias rows — matching + (e.g. greenpt/glm-5.3-flash); falls back to `model` for pre-alias rows — matching the logic the HTTP path used, expressed in SQL. """ if not litellm_db_ready(): @@ -2172,7 +2172,7 @@ async def admin_model_usage(request: Request, days: int = 0): rows = rows.get("data", rows.get("logs", [])) for row in rows if isinstance(rows, list) else []: # Prefer model_group: it carries our provider/model alias (e.g. - # greenpt/green-r, publicai/apertus-v1.5-8b) when present; the + # greenpt/glm-5.3-flash, publicai/apertus-v1.5-8b) when present; the # raw `model` field holds messy upstream/internal names. Older # rows predating the alias convention have model_group empty, # so fall back to `model` for those. @@ -2397,7 +2397,7 @@ async def broker_get_usage(email: str, days: int = 0) -> dict: if row.get("team_id") != team_id: continue # Prefer model_group: it carries our provider/model alias (e.g. - # greenpt/green-r) when present; the raw `model` field holds + # greenpt/glm-5.3-flash) when present; the raw `model` field holds # messy upstream/internal names. Older rows predating the alias # convention have model_group empty, so fall back to `model`. model = row.get("model_group") or row.get("model") or "unknown"