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

Update app/core/response_handlers.py

Browse files
Files changed (1) hide show
  1. app/core/response_handlers.py +2 -3
app/core/response_handlers.py CHANGED
@@ -275,8 +275,7 @@ class StreamResponseHandler(ResponseHandler):
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:
282
  self.buffered_content += content
@@ -460,7 +459,7 @@ class NonStreamResponseHandler(ResponseHandler):
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
  # 处理思考内容的分块格式
466
  if not self.in_thinking_phase:
 
275
  # Transform thinking content
276
  if upstream_data.data.phase == "thinking":
277
  content = transform_thinking_content(content)
278
+ content = content.lstrip('> ')
 
279
  # Buffer content if tools are enabled
280
  if self.has_tools:
281
  self.buffered_content += content
 
459
 
460
  if upstream_data.data.phase == "thinking":
461
  content = transform_thinking_content(content)
462
+ content = content.lstrip('> ')
463
 
464
  # 处理思考内容的分块格式
465
  if not self.in_thinking_phase: