feat: add Models dashboard tab with rich per-model analytics#17733
Closed
yatesjalex wants to merge 1 commit into
Closed
feat: add Models dashboard tab with rich per-model analytics#17733yatesjalex wants to merge 1 commit into
yatesjalex wants to merge 1 commit into
Conversation
- New /models page in left nav (after Analytics) - New /api/analytics/models endpoint with per-model token/cost/session breakdown, cache read/reasoning tokens, tool calls, avg tokens/session, and capabilities from models.dev (vision/tools/reasoning/context window) - Model cards with stacked token distribution bar, capability badges, provider badges, cost info, and relative time - Summary stats bar (models used, total tokens, est. cost, sessions) - Period selector (7d/30d/90d) with refresh - i18n support (en + zh)
0881a9c to
864a41e
Compare
Contributor
|
Merged via #17745 — your commit was cherry-picked onto current main with authorship preserved (
Live-tested against a real hermes_state.db: 23→22 models, 3374→3267 sessions, 0 blank cards. Capability badges + models.dev metadata resolve correctly. Thanks for the nice contribution — the card layout + token distribution bar is a real UX improvement over the existing per-model table on the Analytics page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Models tab to the left nav with rich per-model analytics cards including token distribution bars, capability badges, cost tracking, and models.dev metadata. New /api/analytics/models endpoint.