mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
feat: Don't render <think> block then model is explaining code block. #4474
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 @olek-osikowicz on GitHub (Mar 18, 2025).
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: