yangtb24 commited on
Commit
4e2509e
·
verified ·
1 Parent(s): 89c7765

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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<\think>\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: