Update app.py
Browse files
app.py
CHANGED
@@ -430,7 +430,7 @@ def handsome_chat_completions():
|
|
430 |
if not first_reasoning_chunk:
|
431 |
# yield f"data: {json.dumps({'choices': [{'delta': {'content': '\n```\n'}, 'index': 0}]})}\n\n"
|
432 |
# yield f"data: {json.dumps({'choices': [{'delta': {'content': '\n\n---\n\n### 结果输出\n'}, 'index': 0}]})}\n\n"
|
433 |
-
yield f"data: {json.dumps({'choices': [{'delta': {'content': '\n'}, 'index': 0}]})}\n\n"
|
434 |
first_reasoning_chunk = True
|
435 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': delta["content"]}, 'index': 0}]})}\n\n"
|
436 |
|
|
|
430 |
if not first_reasoning_chunk:
|
431 |
# yield f"data: {json.dumps({'choices': [{'delta': {'content': '\n```\n'}, 'index': 0}]})}\n\n"
|
432 |
# yield f"data: {json.dumps({'choices': [{'delta': {'content': '\n\n---\n\n### 结果输出\n'}, 'index': 0}]})}\n\n"
|
433 |
+
yield f"data: {json.dumps({'choices': [{'delta': {'content': '\n\n'}, 'index': 0}]})}\n\n"
|
434 |
first_reasoning_chunk = True
|
435 |
yield f"data: {json.dumps({'choices': [{'delta': {'content': delta["content"]}, 'index': 0}]})}\n\n"
|
436 |
|