mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 11:40:25 +00:00
Update chat_controller.py
This commit is contained in:
parent
f8247da0e9
commit
973fc385fd
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ async def timeout_stream_wrapper(stream_generator, timeout_seconds: int = SSE_TI
|
|||
yield data
|
||||
except asyncio.TimeoutError:
|
||||
chat_logger.warning(f"SSE timeout: No data received for {timeout_seconds} seconds, closing connection")
|
||||
yield sse_json("error", {"message": "Connection timeout: No data received for 10 minutes"})
|
||||
# TODO: Temporary change: suppress error signal to frontend on timeout. Needs proper fix later.
|
||||
break
|
||||
except StopAsyncIteration:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue