"(intermediate value).map is not a function" on message send/generation with custom stop tokens #1679

Closed
opened 2025-11-11 14:49:59 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @lee-b on GitHub (Aug 4, 2024).

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)

Originally created by @lee-b on GitHub (Aug 4, 2024). # 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 (d3146d20ad74c020855142b2bf7e371f981ec098)
Author
Owner

@tjbck commented on GitHub (Aug 4, 2024):

Fixed on dev!

@tjbck commented on GitHub (Aug 4, 2024): Fixed on dev!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#1679