mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
The last 2 statusHistory of last message in a chat are lost #2862
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @houcheng on GitHub (Nov 28, 2024).
Bug Report
Hi,
I've configured a cost filter to calculate each chat message's price and it runs well during conversion. However, after clicking to another page and back, the last message's cost status always shows a pending icon with message: "Computing nubmer of output tokens...".
It's weird since I literalily saw the cost is calcuated during conversion. I'checked the REST API calls and found that the get_message_by_id() api calling returns the message[] and each one has a status history. The last message has some history lost.
Please see the attached image below.
I've also checked the system's cost Json cache. the data is in cache, seems no lost in cache file. Not sure which part cause this issue.
Installation Method
running as a docker in Ubuntu 24
Environment
Confirmation:
Reproduction Details
Steps to Reproduce:
Just install cost function, chat, go other chat and then back.
Logs and Screenshots