issue: LateX Render Optimization #5034

Closed
opened 2025-11-11 16:10:21 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @AXuanCreator on GitHub (May 5, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.6.5

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

Browser (if applicable)

Edge135.0.3179.54

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have listed steps to reproduce the bug in detail.

Expected Behavior

LaTeX render correct and no red error occurs

Actual Behavior

Sometimes, the LaTeX formula rendering fails, as shown in the image
This happen in many llm like gemini2-flash(lite) gemini2.5-flash, Qwen 2.5-series....

Steps to Reproduce

  1. use gemini 2.0 flash or flash lite
  2. set System Prompt: "使用中文回答。若涉及数学公式,请使用LateX语法。默认不进行深度思考,但当用户主动打出[思考]或[SK]或[sk]时(或者其他类似字样),进行深度思考"
  3. ask "设矩阵有以下等式:|A|E=AA^T,两边取行列式后,等式是如何"

Logs & Screenshots

Additional Information

maybe this problem occurs only in Chinese

Originally created by @AXuanCreator on GitHub (May 5, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.5 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### Browser (if applicable) Edge135.0.3179.54 ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have listed steps to reproduce the bug in detail. ### Expected Behavior LaTeX render correct and no red error occurs ### Actual Behavior Sometimes, the LaTeX formula rendering fails, as shown in the image This happen in many llm like gemini2-flash(lite) gemini2.5-flash, Qwen 2.5-series.... ### Steps to Reproduce 1. use gemini 2.0 flash or flash lite 2. set System Prompt: "使用中文回答。若涉及数学公式,请使用LateX语法。默认不进行深度思考,但当用户主动打出[思考]或[SK]或[sk]时(或者其他类似字样),进行深度思考" 3. ask "设矩阵有以下等式:|A|E=AA^T,两边取行列式后,等式是如何" ### Logs & Screenshots <!-- Failed to upload "image.png" --> ### Additional Information maybe this problem occurs only in Chinese
GiteaMirror added the bug label 2025-11-11 16:10:21 -06:00
Author
Owner

@tth37 commented on GitHub (May 5, 2025):

Could you attach model output?

@tth37 commented on GitHub (May 5, 2025): Could you attach model output?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#5034