[GH-ISSUE #12290] feat: render the reasoning_content in the webui #16536

Closed
opened 2026-04-19 22:26:06 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @muziyongshixin on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12290

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

some api(seems to be openai api V2) return the long COT (or thinking) content in the reasoning_content attribute, not in the content field, 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

Originally created by @muziyongshixin on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12290 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description some api(seems to be openai api V2) return the long COT (or thinking) content in the `reasoning_content` attribute, not in the `content` field, 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_
Author
Owner

@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.

<!-- gh-comment-id:2769414006 --> @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.
Author
Owner

@tjbck commented on GitHub (Apr 1, 2025):

reasoning_content is already rendered and supported.

<!-- gh-comment-id:2770508812 --> @tjbck commented on GitHub (Apr 1, 2025): reasoning_content is already rendered and supported.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#16536