From 26a0ea4b6074d42a18097ee026904c7bff0cc859 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 8 Oct 2026 16:22:12 +0400 Subject: [PATCH] refac --- backend/open_webui/socket/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 99bc15a9ac..c7987a4bae 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -1333,7 +1333,7 @@ async def get_event_emitter(request_info, update_db=True): output, _ = handle_responses_streaming_event(data, output or []) now = time.monotonic() - if not data.get('type', '').endswith('.delta') or now - last_shared_emit >= 0.15: + if not (data.get('type') or '').endswith('.delta') or now - last_shared_emit >= 0.15: last_shared_emit = now payload = { key: value