mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 17:13:00 -05:00
[GH-ISSUE #2629] Latex cannot render correctly with \( \) or multi-lines #12953
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 @xiao-zy19 on GitHub (May 28, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2629
Bug Report
Description
Bug Summary:
GPT sometimes gives responses across lines, and it sometimes uses ( ) instead of [ ], both situations cannot be rendered correctly.
The rendered response:

Raw response:

Steps to Reproduce:
Simply tell the model:
read after me:
( p^* )
[
p^*
]
Expected Behavior:
Render these latex responses correctly.
Actual Behavior:
The responses are not correctly rendered in both situations (see rendered response).
Environment
Open WebUI Version: [e.g., 0.1.125]
Ollama (if applicable): NA
Operating System: Ubuntu 20.04 & win 11
Browser (if applicable): Chrome 120.0.6099.71
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
No errors in logs
Screenshots (if applicable):
See Description part
Installation Method
Docker
Additional Information
NA
@tjbck commented on GitHub (May 28, 2024):
#2615