mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
This commit is contained in:
parent
96bad8091f
commit
26a0ea4b60
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue