Spaces:
Running
Running
Updated app.py
Browse files
app.py
CHANGED
|
@@ -1267,7 +1267,7 @@ def generate_anthropic_stream_events(payload, model, session_key, has_tools=Fals
|
|
| 1267 |
if m_id:
|
| 1268 |
last_msg_id = m_id
|
| 1269 |
|
| 1270 |
-
if content and packet_type in ['content', 'legacy', 'raw']:
|
| 1271 |
full_content_buffer += content
|
| 1272 |
|
| 1273 |
if packet_type == "stop":
|
|
|
|
| 1267 |
if m_id:
|
| 1268 |
last_msg_id = m_id
|
| 1269 |
|
| 1270 |
+
if content and packet_type in ['content', 'legacy', 'raw', 'error']:
|
| 1271 |
full_content_buffer += content
|
| 1272 |
|
| 1273 |
if packet_type == "stop":
|