Merge pull request #1295 from EdelweissHuirh/master

修改分段回复的分割逻辑
This commit is contained in:
Soulter
2025-04-17 16:11:08 +08:00
committed by GitHub
@@ -151,9 +151,9 @@ class ResultDecorateStage(Stage):
# 不分段回复
new_chain.append(comp)
continue
split_response = []
for line in comp.text.split("\n"):
split_response.extend(re.findall(self.regex, line))
split_response = re.findall(
self.regex, comp.text, re.DOTALL | re.MULTILINE
)
if not split_response:
new_chain.append(comp)
continue