I have read and followed all the instructions provided in the README.md.
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 (no errors).
I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
Expected Behavior:
Give my review regarding the response
Actual Behavior:
Many mermaid syntax error appeared in the bottom of the page.
Description
Bug Summary:
Mermaid syntax error appeared in the bottom of the page after clicking on like or unlike review button while I asked before for mermaid diagram in my conversation (the geAI replied with syntax error diagram)
Reproduction Details
Steps to Reproduce:
Ask for mermaid diagram with syntax error -> try to give a review on the genAI reply
Logs and Screenshots
Browser Console Logs:
This is related to diagram syntax error in the console, that resolved after asking to remove it, but it is not the main issue:
Uncaught (in promise)
Object { str: Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING', message: Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING', hash: "Error", error: Error }
2
Originally created by @DadiAnas on GitHub (Sep 1, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5078
# Bug Report
## Installation Method
Docker image ghcr.io/open-webui/open-webui:cuda
## Environment
- **Open WebUI Version:** v0.3.16
- **Ollama (if applicable):** 0.3.8
- **Operating System:** all
- **Browser (if applicable):** Firefox/Chrome
**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.
- [x] I have included the browser console logs.
- [] I have included the Docker container logs (no errors).
- [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.
## Expected Behavior:
Give my review regarding the response
## Actual Behavior:
Many mermaid syntax error appeared in the bottom of the page.
## Description
**Bug Summary:**
Mermaid syntax error appeared in the bottom of the page after clicking on like or unlike review button while I asked before for mermaid diagram in my conversation (the geAI replied with syntax error diagram)
## Reproduction Details
**Steps to Reproduce:**
Ask for mermaid diagram with syntax error -> try to give a review on the genAI reply
## Logs and Screenshots

**Browser Console Logs:**
This is related to diagram syntax error in the console, that resolved after asking to remove it, but it is not the main issue:
Uncaught (in promise)
Object { str: `Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING'`, message: `Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING'`, hash: "Error", error: Error }
2
Today I've played around with Mermaid as well, and I encountered the same, or at least a very similar issue::
The Browser Console Log:
I'm using Open WebUI Version: v0.3.16 (using this image: ghcr.io/open-webui/open-webui:main)
I use ChatGPT (gpt-4o-mini ) LLM.
Any help would be really much appreciated.
<!-- gh-comment-id:2324681528 -->
@svzi commented on GitHub (Sep 2, 2024):
Hi there!
Today I've played around with Mermaid as well, and I encountered the same, or at least a very similar issue::
<img width="965" alt="Bildschirmfoto 2024-09-02 um 14 41 20" src="https://github.com/user-attachments/assets/b0132c23-f902-403b-93bb-ff246a501ef2">
The Browser Console Log:
<img width="771" alt="Bildschirmfoto 2024-09-02 um 14 46 54" src="https://github.com/user-attachments/assets/db174298-a8eb-4a5b-82a1-45748711859a">
I'm using Open WebUI Version: v0.3.16 (using this image: ghcr.io/open-webui/open-webui:main)
I use ChatGPT (gpt-4o-mini ) LLM.
Any help would be really much appreciated.
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 @DadiAnas on GitHub (Sep 1, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5078
Bug Report
Installation Method
Docker image ghcr.io/open-webui/open-webui:cuda
Environment
Open WebUI Version: v0.3.16
Ollama (if applicable): 0.3.8
Operating System: all
Browser (if applicable): Firefox/Chrome
Confirmation:
Expected Behavior:
Give my review regarding the response
Actual Behavior:
Many mermaid syntax error appeared in the bottom of the page.
Description
Bug Summary:
Mermaid syntax error appeared in the bottom of the page after clicking on like or unlike review button while I asked before for mermaid diagram in my conversation (the geAI replied with syntax error diagram)
Reproduction Details
Steps to Reproduce:
Ask for mermaid diagram with syntax error -> try to give a review on the genAI reply
Logs and Screenshots
Browser Console Logs:
This is related to diagram syntax error in the console, that resolved after asking to remove it, but it is not the main issue:
Uncaught (in promise)
Object { str:
Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING', message:Parse error on line 54:\n...FA07AclassDiagram C9E4CA, "Compute Ser\n---------------------^\nExpecting 'SEMI', 'NEWLINE', 'EOF', 'AMP', 'START_LINK', 'LINK', got 'NODE_STRING', hash: "Error", error: Error }2
@svzi commented on GitHub (Sep 2, 2024):
Hi there!
Today I've played around with Mermaid as well, and I encountered the same, or at least a very similar issue::
The Browser Console Log:

I'm using Open WebUI Version: v0.3.16 (using this image: ghcr.io/open-webui/open-webui:main)
I use ChatGPT (gpt-4o-mini ) LLM.
Any help would be really much appreciated.
@tjbck commented on GitHub (Sep 3, 2024):
Fixed on dev!