mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #23931] [CLOSED] feat: convert Ollama reasoning (thinking) to <think> tags for generic OpenAI clients #43073
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/23931
Author: @pvyswiss
Created: 4/21/2026
Status: ❌ Closed
Base:
main← Head:feat/ollama-reasoning-as-think-tags📝 Commits (1)
447e5a5feat: convert Ollama reasoning to tags for generic OpenAI clients📊 Changes
1 file changed (+17 additions, -0 deletions)
View changed files
📝
backend/open_webui/utils/response.py(+17 -0)📄 Description
Summary
Fixes #23923 (Ref: #23917 Bug 4)
message.thinkingfield to<think>tags in the standardcontentfieldreasoning_contentand silently drop reasoning tokens<think>tags as collapsible blocks -- fully backward-compatible🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.