mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #18080] [CLOSED] Fix title_string is NoneType error #40294
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/18080
Author: @xhejtman
Created: 10/6/2025
Status: ❌ Closed
Base:
dev← Head:title-fix📝 Commits (2)
c547907Fix title_string is NoneType error9bc16d5Merge branch 'dev' into title-fix📊 Changes
1 file changed (+9 additions, -7 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+9 -7)📄 Description
Some models return reasoning_content instead of content. In such a case,
title_stringends None and furtherfindmethod fails.Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
reasoning_contentinstead ofcontent. This fix implements fallback toreasoning_contentifcontentis empty.Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.