mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-06 07:48:06 +00:00
The Team Usage tab drained row-paginated pages client side, which painted newest days first and drew duplicate bars when a day's rows straddled a page boundary. Serve the whole range in one SQL GROUPING SETS pass instead: the aggregated query gains optional per-entity rollup levels (entity as the most-significant GROUPING bit) so breakdown.entities keeps per-team spend, aliases, and per-key splits. The endpoint shares the paginated route's scoping via _resolve_team_daily_activity_scope, accepts the timezone the UI already sends, and the api_key filter now takes a list so non-admin member scoping works. The dashboard tries the aggregated endpoint first and falls back to page draining on failure. |
||
|---|---|---|
| .. | ||
| management | ||
| spend | ||
| __init__.py | ||