修改分段回复逻辑

This commit is contained in:
huirh
2025-04-16 20:43:43 +08:00
parent 1be5b4c7ff
commit 0a02441b75
@@ -151,9 +151,7 @@ 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)
if not split_response:
new_chain.append(comp)
continue