yangtb24 commited on
Commit
481e2c1
·
verified ·
1 Parent(s): 516659b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -471,6 +471,9 @@ def handsome_chat_completions():
471
  reasoning_content_accumulated = ""
472
  content_accumulated = ""
473
  first_reasoning_chunk = True
 
 
 
474
 
475
  for chunk in response.iter_lines():
476
  if chunk:
 
471
  reasoning_content_accumulated = ""
472
  content_accumulated = ""
473
  first_reasoning_chunk = True
474
+
475
+
476
+ yield f"data: {json.dumps({'choices': [{'delta': {'content': ''}, 'index': 0}]})}\n\n"
477
 
478
  for chunk in response.iter_lines():
479
  if chunk: