Update app.py
Browse files
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"
|