[GH-ISSUE #9100] Option to disable <think> block markdown rendering #118694

Closed
opened 2026-05-20 19:59:52 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @XingjianXie on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9100

It is possible to provide an option to turn on / off the markdown rendering for <think> block? DeepSeek is trained output plain text in <think> block and output rich text outside.

Example:

Question "How to reshape the tensor from (A, B, C, D) to (A, B * C * D) in PyTorch"

Open WebUI:

Image

chat.deepseek.com:

Image
Originally created by @XingjianXie on GitHub (Jan 30, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/9100 It is possible to provide an option to turn on / off the markdown rendering for \<think\> block? DeepSeek is trained output plain text in \<think\> block and output rich text outside. Example: Question "How to reshape the tensor from (A, B, C, D) to (A, B * C * D) in PyTorch" Open WebUI: <img width="658" alt="Image" src="https://github.com/user-attachments/assets/ffda710e-9b03-482f-b8be-9380c698cf39" /> chat.deepseek.com: <img width="630" alt="Image" src="https://github.com/user-attachments/assets/2ca2544c-2404-48f7-824e-d6d1bed8a169" />
Author
Owner

@XingjianXie commented on GitHub (Jan 30, 2025):

The content of the <think> block is not normally influenced by system prompt. While the model can be instructed to output in a specific format, it normally does not change the output format in <think> block. In DeepSeek R1, it is assumed plain text.

<!-- gh-comment-id:2623476174 --> @XingjianXie commented on GitHub (Jan 30, 2025): The content of the \<think\> block is not normally influenced by system prompt. While the model can be instructed to output in a specific format, it normally does not change the output format in \<think\> block. In DeepSeek R1, it is assumed plain text.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#118694