Spaces:
Paused
Paused
Update app/core/response_handlers.py
Browse files
app/core/response_handlers.py
CHANGED
|
@@ -460,7 +460,7 @@ class NonStreamResponseHandler(ResponseHandler):
|
|
| 460 |
if upstream_data.data.phase == "thinking":
|
| 461 |
content = transform_thinking_content(content)
|
| 462 |
# 移除引用
|
| 463 |
-
content =
|
| 464 |
|
| 465 |
# 处理思考内容的分块格式
|
| 466 |
if not self.in_thinking_phase:
|
|
|
|
| 460 |
if upstream_data.data.phase == "thinking":
|
| 461 |
content = transform_thinking_content(content)
|
| 462 |
# 移除引用
|
| 463 |
+
content = '\n'.join(line.lstrip('> ') for line in content.split('\n'))
|
| 464 |
|
| 465 |
# 处理思考内容的分块格式
|
| 466 |
if not self.in_thinking_phase:
|