Update app.py
Browse files
app.py
CHANGED
@@ -447,7 +447,7 @@ def handsome_chat_completions():
|
|
447 |
|
448 |
if delta.get("reasoning_content") is not None:
|
449 |
reasoning_content_accumulated += delta.get("reasoning_content", "")
|
450 |
-
formatted_reasoning = f"```Thinking\n{reasoning_content_accumulated}\n
|
451 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': formatted_reasoning}, 'index': 0, 'finish_reason': None}]})}\n\n"
|
452 |
reasoning_content_accumulated = ""
|
453 |
|
|
|
447 |
|
448 |
if delta.get("reasoning_content") is not None:
|
449 |
reasoning_content_accumulated += delta.get("reasoning_content", "")
|
450 |
+
formatted_reasoning = f"```Thinking\n{reasoning_content_accumulated}\n"
|
451 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': formatted_reasoning}, 'index': 0, 'finish_reason': None}]})}\n\n"
|
452 |
reasoning_content_accumulated = ""
|
453 |
|