mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 07:24:59 -05:00
[GH-ISSUE #4340] "(intermediate value).map is not a function" on message send/generation with custom stop tokens #13573
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 @lee-b on GitHub (Aug 4, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4340
Bug Report
Description
When sending messages, with a custom stop token set in the chat's side panel properties, I get this error:
"(intermediate value).map is not a function"
Also, when regenerating a message, I get this similar error inline, as the message body (but when the message background red):
"Uh-oh! There was an issue connecting to (model).
(intermediate value).map is not a function"
Setting a stop token of "<|im_end|>" in the chat properties seems to cause this.
Setting the same stop token in the (base) workspace model advanced properties works fine, however. This seems to be a good indication of the problem (escaping in the side panel values missing, whilst present in the workspace model properties), as well as a workaround.
Version
HEAD, as of yesterday (
d3146d20ad)@tjbck commented on GitHub (Aug 4, 2024):
Fixed on dev!