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:
chat.deepseek.com:
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" />
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.
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 @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:
chat.deepseek.com:
@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.