Hansimov commited on
Commit
21a8c71
1 Parent(s): ad66be0

:boom: [Fix] Remove ping message from fastapi with increasing ping interval

Browse files
Files changed (1) hide show
  1. apis/chat_api.py +1 -0
apis/chat_api.py CHANGED
@@ -157,6 +157,7 @@ class ChatAPIApp:
157
  connector.stream_chat(
158
  prompt=prompt, system_prompt=system_prompt, yield_output=True
159
  ),
 
160
  media_type="text/event-stream",
161
  )
162
 
 
157
  connector.stream_chat(
158
  prompt=prompt, system_prompt=system_prompt, yield_output=True
159
  ),
160
+ ping=2000,
161
  media_type="text/event-stream",
162
  )
163