open-webui/backend/open_webui/socket
Classic298 06f8ee0e42 fix: handle None chat_id in get_event_emitter channel-mode check
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.
2026-05-11 00:32:56 +02:00
..
main.py fix: handle None chat_id in get_event_emitter channel-mode check 2026-05-11 00:32:56 +02:00
utils.py refac 2026-03-22 05:48:05 -05:00