bluewinliang commited on
Commit
f43595b
·
verified ·
1 Parent(s): ac10ad0

Update app/core/response_handlers.py

Browse files
Files changed (1) hide show
  1. app/core/response_handlers.py +1 -1
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
  # 处理思考内容的分块格式