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:
[ x] I have read and followed all the instructions provided in the README.md.
[ x] I am on the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
[ x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
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
"How do you display a literal backslash in Markdown?"
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 run on any model does not duplicate the backslashes
Note
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!
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:**
- [ x] I have read and followed all the instructions provided in the README.md.
- [ x] I am on the latest version of both Open WebUI and Ollama.
- [ ] I have included the browser console logs.
- [ ] I have included the Docker container logs.
- [ x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## 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
> "How do you display a literal backslash in Markdown?"
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 run` on any model does not duplicate the backslashes
## Note
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!
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.