[PR #18072] [CLOSED] Fix: NoneType in chat title for Reasoning Models #47710

Closed
opened 2026-04-29 23:03:23 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/18072
Author: @deu-dev
Created: 10/6/2025
Status: Closed

Base: devHead: fix-nonetype-in-chat-title


📝 Commits (1)

  • 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)

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.

## 📋 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>
GiteaMirror added the pull-request label 2026-04-29 23:03:23 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#47710