Add "Cached Tokens" widget and metrics
I've been using Bifrost and considering GoModel as a replacement. I prefer GoModel's minimalist UI but miss Bifrost's cached-token stats.
Proposal:
- In Usage Overview, add a new widget "Cached Tokens".
- In Daily Token Usage chart, add a new line for total cached tokens
- In Usage Analytics / Token Usage by Model, add new column for cached tokens (table mode)
Thank you for the feedback! Definitely GoModel is going in this direction. The local caching and prompt caching visibility/observability will be increased soon. Once done, I'll update you here.
Hi @SantiagoDePolonia , just checking in on this issue — how's the progress going? Would there be any part of the work that I could help with or take on? I'd be happy to contribute.
@Barsit feel free to pick this item up. You can start by adding a prompt caching meter in percentages. You can also add a "percentage per day" widget. It should respect the preselected timespan.
Remember that there are two/three types of cache:
-
Local cache:
- exact
- semantic
-
Prompt cache (provider cache)
What's missing is prompt caching visibility in the Overview tab.
Once you create a PR, check out the comments generated by CodeRabbit and Greptile, and try to fix those. Later, I'll review it.
Before creating a PR, please make sure it looks pretty enough and there are no UI bugs.
I'm equipping you with write permissions right now.
@SantiagoDePolonia Thank you so much for the write access and for the detailed guidance on the cache types — local (exact + semantic) vs. provider prompt cache. That breakdown is really helpful.
I'm currently working on intelligent routing (smart provider selection based on model capabilities, cost, and latency). Once that's in a good state, I'll pick this issue up next and start adding the cached tokens widget to the Overview tab, following your instructions.
Thanks again for the trust, and I'll make sure the UI is polished before opening the PR. 🚀
@ndaidong the overview page has been improved starting from version 0.1.45. Let me know WDYT about the new version. Is there anything you miss there?
Thanks, I've upgraded to v0.1.46, the charts work fine. Dashboard looks more professional a lot.
@ndaidong Thank you! GoModel is better every week :)
Don't hesitate to report any suggestion, feedback or issue.