mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #23763] [CLOSED] fix: run outlet filters for API callers without chat_id / message_id #42989
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/23763
Author: @Classic298
Created: 4/15/2026
Status: ❌ Closed
Base:
dev← Head:claude/fix-outlet-filter-handler-C46ht📝 Commits (2)
7d894cdfix: run outlet filters for API callers without chat_id / message_id86bf3a6refac: trim noisy comments in outlet_filter_handler📊 Changes
1 file changed (+13 additions, -13 deletions)
View changed files
📝
backend/open_webui/utils/middleware.py(+13 -13)📄 Description
Upstream
70a6a24extended outlet_filter_handler to handle temp chats (chat_id prefixed with 'local:') by building the message list in-memory from form_data + ctx['assistant_message']. API callers of /api/chat/completions that omit chat_id and/or id in the request body still hit the early-return guard and never had their outlet filters run.Route those callers into the same in-memory branch and synthesize local-only chat_id / message_id values scoped to the outlet payload (never written back to metadata, so streaming save, event routing and webhook URLs keep seeing the real None values). Closes #23740.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.