mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
refac: direct connections
This commit is contained in:
@@ -2349,7 +2349,9 @@ async def process_chat_response(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if data:
|
if data:
|
||||||
if "event" in data:
|
if "event" in data and not getattr(
|
||||||
|
request.state, "direct", False
|
||||||
|
):
|
||||||
await event_emitter(data.get("event", {}))
|
await event_emitter(data.get("event", {}))
|
||||||
|
|
||||||
if "selected_model_id" in data:
|
if "selected_model_id" in data:
|
||||||
|
|||||||
Reference in New Issue
Block a user