yangtb24 commited on
Commit
95bf044
·
verified ·
1 Parent(s): 071bdc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -505,6 +505,7 @@ def handsome_chat_completions():
505
 
506
  first_chunk["choices"][0]["delta"]["content"] = ""
507
  first_chunk["choices"][0]["delta"]["reasoning_content"] = ""
 
508
  yield f"data: {json.dumps(first_chunk)}\n\n"
509
 
510
  openai_chunk["choices"][0]["delta"]["content"] = "<think>\n"
 
505
 
506
  first_chunk["choices"][0]["delta"]["content"] = ""
507
  first_chunk["choices"][0]["delta"]["reasoning_content"] = ""
508
+ first_chunk["choices"][0]["delta"]["role"] = "assistant"
509
  yield f"data: {json.dumps(first_chunk)}\n\n"
510
 
511
  openai_chunk["choices"][0]["delta"]["content"] = "<think>\n"