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

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
@@ -460,7 +460,7 @@ class NonStreamResponseHandler(ResponseHandler):
460
  if upstream_data.data.phase == "thinking":
461
  content = transform_thinking_content(content)
462
  # 移除引用
463
- content = content.lstrip('> ')
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: