mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-10 23:55:15 -05:00
[GH-ISSUE #4416] TypeError Raised after Setting Custom Stop Sequence #100596
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 @jameslai-dev on GitHub (Aug 7, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4416
Bug Report
Description
Bug Summary:
I was running Open WebUI with LLMs connected via OpenAI compatible API on a local server. After setting custom stop sequence, it stopped working with a TypeError exception raised. The error message was:
The used LLMs were hosted by vLLM and llama.cpp, and both met the same problem.
Steps to Reproduce:
Controlsand setStop Sequenceto any text, for example<|im_stop|>.Expected Behavior:
The
Stop Sequenceparameter should be set successfully and working without errors.Actual Behavior:
TypeError: ((intermediate value)(intermediate value)(intermediate value) ?? o.params.stop).map is not a functionraised.Environment
Open WebUI Version: v0.3.11
Ollama (if applicable): No
Operating System: Windows 10 22H2
Browser (if applicable): Microsoft Edge 127.0.2651.86
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
Screenshots (if applicable):
Installation Method
I installed Open WebUI with docker followed the instruction described in official documentation:
https://docs.openwebui.com/#installation-for-openai-api-usage-only