yangtb24 commited on
Commit
80fdbb0
·
verified ·
1 Parent(s): 0f2e285

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -494,7 +494,7 @@ def handsome_chat_completions():
494
 
495
  if delta.get("content") is not None:
496
  if not first_reasoning_chunk:
497
- reasoning_chunk = f"\n<\think>\n"
498
  yield f"data: {json.dumps({'choices': [{'delta': {'content': reasoning_chunk}, 'index': 0}]})}\n\n"
499
  first_reasoning_chunk = True
500
  yield f"data: {json.dumps({'choices': [{'delta': {'content': delta["content"]}, 'index': 0}]})}\n\n"
 
494
 
495
  if delta.get("content") is not None:
496
  if not first_reasoning_chunk:
497
+ reasoning_chunk = f"\n</think>\n"
498
  yield f"data: {json.dumps({'choices': [{'delta': {'content': reasoning_chunk}, 'index': 0}]})}\n\n"
499
  first_reasoning_chunk = True
500
  yield f"data: {json.dumps({'choices': [{'delta': {'content': delta["content"]}, 'index': 0}]})}\n\n"