Update app.py
Browse files
app.py
CHANGED
@@ -524,9 +524,8 @@ def handsome_chat_completions():
|
|
524 |
choice = response_json["choices"][0]
|
525 |
if "message" in choice:
|
526 |
if "reasoning_content" in choice["message"]:
|
527 |
-
response_content += f"<think>\n"
|
528 |
reasoning_content = choice["message"]["reasoning_content"]
|
529 |
-
response_content += f"\n
|
530 |
if "content" in choice["message"]:
|
531 |
response_content += choice["message"]["content"]
|
532 |
elif "choices" in response_json and len(response_json["choices"]) > 0:
|
|
|
524 |
choice = response_json["choices"][0]
|
525 |
if "message" in choice:
|
526 |
if "reasoning_content" in choice["message"]:
|
|
|
527 |
reasoning_content = choice["message"]["reasoning_content"]
|
528 |
+
response_content += f"<think>\n{reasoning_content}\n</think>\n"
|
529 |
if "content" in choice["message"]:
|
530 |
response_content += choice["message"]["content"]
|
531 |
elif "choices" in response_json and len(response_json["choices"]) > 0:
|