mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 09:01:47 -05:00
[GH-ISSUE #8129] Status Descriptions sent by Functions that contain characters were corrupted by i18n after v0.5.0 #15013
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 @DmitriyAlergant on GitHub (Dec 27, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/8129
Bug Report
Installation Method
Open-WebUI 0.5.1, via Docker
Environment
Confirmation:
Expected Behavior:
Expected to continue seeing the full original status string as it was sent by the pipe function
Actual Behavior:
Seeing status string containing only some of the tokens (sometimes differently), likely coming from i18next "Interpolation" of plurals.
Description
Bug Summary:
After the recent update, status descriptions generated by some functions that contain characters like : are not displayed correctly. Example, status string generated by a pipe function with cost tracking controls:
3.90s | 241 input tokens | This request: $0.00 | Chat total: $0.00 | CompletedHow it is rendered by Open WebUI with i18n:
$0.00 | Chat total. $0.00 | CompletedI was able to trace the issue down to the following line in ResponseMessage.svelte
Previously (till 0.4.8), status description was not passed through i18n. Now, i18n is interpreting some characters like : as special characters and corrupting the entire message. This isn't right.
Reproduction Details
Create a function with the following code
And talk to this "model"
Logs and Screenshots
@tjbck commented on GitHub (Dec 27, 2024):
Should be addressed with #8130
@DmitriyAlergant commented on GitHub (Dec 27, 2024):
Thanks!