mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-23 10:02:10 -05:00
[PR #24556] [CLOSED] fix: handle None chat_id in get_event_emitter channel-mode check #115033
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/24556
Author: @Classic298
Created: 5/10/2026
Status: ❌ Closed
Base:
dev← Head:fix/chat-completions-nonetype-channel-check📝 Commits (1)
06f8ee0fix: handle None chat_id in get_event_emitter channel-mode check📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
backend/open_webui/socket/main.py(+3 -2)📄 Description
Direct API callers to /api/chat/completions pass no chat_id, so metadata['chat_id'] ends up None. dict.get('chat_id', '') returns None (not '') when the key is present-with-None, so the channels-streaming branch added in v0.9.5 (
0037baeb2) crashed with 'NoneType' object has no attribute 'startswith', surfacing as HTTP 400 to the caller.Fixes #24553.
Contributor License Agreement
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.