GoModel icon indicating copy to clipboard operation
GoModel copied to clipboard

Add "Cached Tokens" widget and metrics

Open ndaidong opened this issue 5 months ago • 7 comments

I've been using Bifrost and considering GoModel as a replacement. I prefer GoModel's minimalist UI but miss Bifrost's cached-token stats.

Image

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)

ndaidong avatar Jun 15 '26 15:06 ndaidong

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.

SantiagoDePolonia avatar Jun 15 '26 15:06 SantiagoDePolonia

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 avatar Jun 19 '26 01:06 Barsit

@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 avatar Jun 19 '26 13:06 SantiagoDePolonia

@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. 🚀

Barsit avatar Jun 19 '26 14:06 Barsit

@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?

Image

SantiagoDePolonia avatar Jun 29 '26 11:06 SantiagoDePolonia

Thanks, I've upgraded to v0.1.46, the charts work fine. Dashboard looks more professional a lot.

ndaidong avatar Jun 30 '26 01:06 ndaidong

@ndaidong Thank you! GoModel is better every week :)

Don't hesitate to report any suggestion, feedback or issue.

SantiagoDePolonia avatar Jun 30 '26 11:06 SantiagoDePolonia