shiv-4567892009 commited on
Commit
ad3b7a8
·
verified ·
1 Parent(s): 8718dff

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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":