dashboard_for_sage/wwwroot/api/top_users.dspy
yumoqing 855f376671 refactor: consolidate rankings into combined charts
- Change top models from Top 3 to Top 5
- Simplify titles: remove 'Top X' and parenthetical details
- Replace separate user tables (by amount/by count) with single ChartBar
- Replace separate provider tables with single ChartBar
- Add get_top_users_combined and get_top_providers_combined functions
2026-06-01 15:41:40 +08:00

7 lines
170 B
Plaintext

# coding=utf-8
"""Top users data API for ChartBar"""
import json
users = await get_top_users_combined(request)
return json.dumps(users, ensure_ascii=False, default=str)