We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a4d05e commit 56673adCopy full SHA for 56673ad
astrbot/core/pipeline/respond/stage.py
@@ -158,7 +158,11 @@ async def process(
158
result = event.get_result()
159
if result is None:
160
return
161
+ if event.get_extra("_streaming_finished", False):
162
+ # prevent some plugin make result content type to LLM_RESULT after streaming finished, lead to send again
163
+ return
164
if result.result_content_type == ResultContentType.STREAMING_FINISH:
165
+ event.set_extra("_streaming_finished", True)
166
167
168
logger.info(
0 commit comments