From 58e32b7b708e9041ececa3902174e0d692c50e8b Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Wed, 17 Dec 2025 11:12:05 +0800 Subject: [PATCH] fix: inverted logic in segmented reply LLM-only filter (#4071) * Initial plan * Fix: Correct inverted logic in is_seg_reply_required for only_llm_result option Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com> --- astrbot/core/pipeline/respond/stage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/pipeline/respond/stage.py b/astrbot/core/pipeline/respond/stage.py index bfbcaf33a..60ab168b3 100644 --- a/astrbot/core/pipeline/respond/stage.py +++ b/astrbot/core/pipeline/respond/stage.py @@ -119,7 +119,7 @@ class RespondStage(Stage): if (result := event.get_result()) is None: return False - if self.only_llm_result and result.is_llm_result(): + if self.only_llm_result and not result.is_llm_result(): return False if event.get_platform_name() in [