Spaces:
Paused
Paused
:boom: [Fix] Remove ping message from fastapi with increasing ping interval
Browse files- 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 |
|