fix: update regex handling in ResultDecorateStage to use findall for segmented replies

This commit is contained in:
Soulter
2025-11-24 20:01:49 +08:00
parent 3e481e9947
commit e2d0ce05d8
@@ -171,7 +171,7 @@ class ResultDecorateStage(Stage):
logger.error(
f"分段回复正则表达式错误,使用默认换行符分段: {traceback.format_exc()}",
)
split_response = re.split(
split_response = re.findall(
r".*?[。?!~…]+|.+$",
comp.text,
re.DOTALL | re.MULTILINE,