Update app.py
Browse files
app.py
CHANGED
@@ -488,7 +488,9 @@ def handsome_chat_completions():
|
|
488 |
if delta.get("reasoning_content") is not None:
|
489 |
reasoning_chunk = delta["reasoning_content"]
|
490 |
if first_reasoning_chunk:
|
491 |
-
think_chunk = f"<think
|
|
|
|
|
492 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': think_chunk}, 'index': 0}]})}\n\n"
|
493 |
first_reasoning_chunk = False
|
494 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': reasoning_chunk}, 'index': 0}]})}\n\n"
|
|
|
488 |
if delta.get("reasoning_content") is not None:
|
489 |
reasoning_chunk = delta["reasoning_content"]
|
490 |
if first_reasoning_chunk:
|
491 |
+
think_chunk = f"<think>"
|
492 |
+
yield f"data: {json.dumps({'choices': [{'delta': {'content': think_chunk}, 'index': 0}]})}\n\n"
|
493 |
+
think_chunk = f"\n"
|
494 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': think_chunk}, 'index': 0}]})}\n\n"
|
495 |
first_reasoning_chunk = False
|
496 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': reasoning_chunk}, 'index': 0}]})}\n\n"
|