Bug in LLM Usage UI

Happy new year!

I found a secondary bug after the original bug was fixed here:Minor UI bug in LLM Usage page - #2 by zogstrip

When the page loads the default time duration is last month.

It’s showing me all the models that were used last month.

  • Now I select one of the models:

  • Now I click on Last 24 hours, it’s still showing me the same list (and usage):

This is wrong, it appears to caching the old list (and usage numbers).

  • If I refresh the page and click directly on last 24 hours without selecting any model first, now the drop down list show me the correct list (and corresponding usage).

1개의 좋아요

Nice catch @RBoy - I missed handling/clearing the cache when changing the period as well :man_facepalming:

https://github.com/discourse/discourse/pull/36975

1개의 좋아요