Files
open-webui-ai4me/backend/open_webui/models
Classic298 caf3362be8 fix: add missing group_id filter to analytics token usage query (#22167)
The get_token_usage_by_user query lacked group_id filtering, while the
companion get_message_count_by_user query already supported it. When an
admin filtered analytics by user group, message counts were correctly
scoped to the group but token usage totals included data from all users.

Add the group_id parameter and subquery filter to get_token_usage_by_user,
matching the pattern used by get_message_count_by_user and other analytics
queries, and pass group_id through from the analytics endpoint.
2026-03-08 17:11:12 -05:00
..
2026-02-25 15:15:59 -06:00
2026-03-01 14:06:26 -06:00
2026-02-21 15:35:34 -06:00
2026-03-07 20:22:01 -06:00
2026-02-04 23:42:46 -06:00
2026-02-11 16:24:11 -06:00
2026-03-07 19:45:43 -06:00
2026-03-06 20:12:37 -06:00
2026-02-25 14:52:41 -06:00
2026-03-01 13:20:55 -06:00
2026-01-09 02:30:15 +04:00
2026-02-21 15:35:34 -06:00
2026-02-19 16:53:21 -06:00
2026-02-11 16:24:11 -06:00
2026-02-21 15:35:34 -06:00
2026-02-21 15:35:34 -06:00
2026-02-16 00:43:32 -06:00
2026-02-23 01:40:53 -06:00
2026-02-13 15:00:39 -06:00