Spaces:
Paused
Paused
Update app/core/response_handlers.py
Browse files
app/core/response_handlers.py
CHANGED
|
@@ -275,6 +275,7 @@ class StreamResponseHandler(ResponseHandler):
|
|
| 275 |
# Transform thinking content
|
| 276 |
if upstream_data.data.phase == "thinking":
|
| 277 |
content = transform_thinking_content(content)
|
|
|
|
| 278 |
|
| 279 |
# Buffer content if tools are enabled
|
| 280 |
if self.has_tools:
|
|
@@ -459,7 +460,6 @@ class NonStreamResponseHandler(ResponseHandler):
|
|
| 459 |
|
| 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 |
# 处理思考内容的分块格式
|
|
|
|
| 275 |
# Transform thinking content
|
| 276 |
if upstream_data.data.phase == "thinking":
|
| 277 |
content = transform_thinking_content(content)
|
| 278 |
+
content = '\n'.join(line.lstrip('> ') for line in content.split('\n'))
|
| 279 |
|
| 280 |
# Buffer content if tools are enabled
|
| 281 |
if self.has_tools:
|
|
|
|
| 460 |
|
| 461 |
if upstream_data.data.phase == "thinking":
|
| 462 |
content = transform_thinking_content(content)
|
|
|
|
| 463 |
content = '\n'.join(line.lstrip('> ') for line in content.split('\n'))
|
| 464 |
|
| 465 |
# 处理思考内容的分块格式
|