feat:summary update output

This commit is contained in:
aries_ckt 2023-11-15 14:17:11 +08:00
parent 8be43c5e24
commit 6253d3b429

View File

@ -36,6 +36,7 @@ class ExtractRefineSummary(BaseChat):
last_output = None
async for output in super().stream_call():
last_output = output
last_output = last_output.replace("\n", "\\n")
yield output
last_output = f"<summary>{last_output}</summary>"