mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #12290] feat: render the reasoning_content in the webui #55202
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 @muziyongshixin on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12290
Check Existing Issues
Problem Description
some api(seems to be openai api V2) return the long COT (or thinking) content in the
reasoning_contentattribute, not in thecontentfield, so the webui can not render the cot text.I have tried gemini-2.0-flash-thinking-exp, which only shows the final anwser without the COT.
Desired Solution you'd like
support the rendering of thinking process.
Alternatives Considered
No response
Additional Context
No response
@Classic298 commented on GitHub (Apr 1, 2025):
gemini 2.0 flash thinking experimental does not seem to return reasoning content from the API in general, since it's an experimental model. I suspect google didn't felt it is needed to provide the reasoning content for their experimental models via the API.
I also reference LiteLLM here, where this discussion was already held and some people over there said that there is no reasoning content from the experimental models via the API AT ALL
Also, for your original question, OpenWebUI already does render the reasoning content in the UI if it is provided in the reasoning_content attribute.
@tjbck commented on GitHub (Apr 1, 2025):
reasoning_content is already rendered and supported.