c36099c fix: Use reasoning_content if content is empty from message
📊 Changes
1 file changed (+11 additions, -3 deletions)
View changed files
📝backend/open_webui/utils/middleware.py (+11 -3)
📄 Description
Some Reasoning Models don't return the key content in their response, instead they return the contet in the key reasoning_content
Changelog Entry
Description
[Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]
Fixed
Chat title generation for Reasoning Models (#17573)
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/18072
**Author:** [@deu-dev](https://github.com/deu-dev)
**Created:** 10/6/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `fix-nonetype-in-chat-title`
---
### 📝 Commits (1)
- [`c36099c`](https://github.com/open-webui/open-webui/commit/c36099c0aacbdcb8161a5d1a469e464db0d40104) fix: Use reasoning_content if content is empty from message
### 📊 Changes
**1 file changed** (+11 additions, -3 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/utils/middleware.py` (+11 -3)
</details>
### 📄 Description
Some Reasoning Models don't return the key `content` in their response, instead they return the contet in the key `reasoning_content`
# Changelog Entry
### Description
- [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)]
### Fixed
- Chat title generation for Reasoning Models (#17573)
---
### Additional Information
- Added change from Discussion https://github.com/open-webui/open-webui/discussions/17573
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/18072
Author: @deu-dev
Created: 10/6/2025
Status: ❌ Closed
Base:
dev← Head:fix-nonetype-in-chat-title📝 Commits (1)
c36099cfix: Use reasoning_content if content is empty from message📊 Changes
1 file changed (+11 additions, -3 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+11 -3)📄 Description
Some Reasoning Models don't return the key
contentin their response, instead they return the contet in the keyreasoning_contentChangelog Entry
Description
Fixed
Additional Information
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.