mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #14886] [MERGED] Isolated fix to single section #10427
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/14886
Author: @2underscores
Created: 6/11/2025
Status: ✅ Merged
Merged: 6/16/2025
Merged by: @tjbck
Base:
dev← Head:fix-no-arg-mcp-call📝 Commits (1)
88c8ea8Isolated fix to single section📊 Changes
1 file changed (+14 additions, -4 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+14 -4)📄 Description
This is a fix IF the fix for this issue even belongs in Open WebUI. I'm not sure of the actual best place this one should be fixed, so have raised a discussion for this issue here - https://github.com/open-webui/open-webui/discussions/14882. Discussion has diagrams and more details.
I feel like the fix for this issue does belong in Open WebUI, but feel free to just close this PR if you think it actually belongs somewhere else (e.g. bedrock gateway). If it does belong here, but the late mutation is a bit ugly, I can move it up closer to the response stream receiving part.
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Changed
Fixed
""are now properly converted to valid JSON empty objects"{}"Security
Breaking Changes
Screenshots or Videos
Screenshot shows a before after in a single chat of the error and then fixed

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.