mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 18:14:16 -05:00
Escaping Error in code blocks: Single Backslash Duplicated in Output #1758
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 @dinoamino on GitHub (Aug 13, 2024).
Bug Report
Installation Method
Docker (docker compose)
Environment
Open WebUI Version: v0.3.12
Ollama (if applicable): 0.3.4
Operating System: Ubuntu 22.04
Browser (if applicable): Firefox
Confirmation:
Expected Behavior:
Single backslashes are not escaped in code blocks.
Actual Behavior:
Single backslashes are printed with double backslash in code blocks.
Description
Bug Summary:
Anytime a model responds with a single backslash in a code block it is displayed with a double backslash.
Reproduction Details
Steps to Reproduce:
Use a prompt on any model that would output a code block with a backslash, such as
The output in Open WebUI contains double backslashes in code blocks.
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
Additional Information
Running the same prompt via
ollama runon any model does not duplicate the backslashesNote
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@zhiqing0205 commented on GitHub (Aug 13, 2024):
Single slash becomes double slash causing error
@tjbck commented on GitHub (Aug 13, 2024):
Fixed in dev.