mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
[GH-ISSUE #11817] feat: Don't render <think> block then model is explaining code block. #16365
Reference in New Issue
Block a user
Originally created by @olek-osikowicz on GitHub (Mar 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/11817
Check Existing Issues
Problem Description
When clicking on a code block, there is an option to ask model to explain it.
Then the thinking model, is just streaming raw response with
<think></think>tags.See the current behaviour below:
https://github.com/user-attachments/assets/e7c6bf32-10bb-40c7-8d8a-5b62a767f1ad
Desired Solution you'd like
I believe the correct solution would be collapsing the thinking with
<details>tag, as it is currently done in regular chat:Additional Context
Tested using: