From 3817d3ca8769ec7aabb1ceef0800ab2303a38999 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Fri, 28 Feb 2025 21:59:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E8=AE=B0=E5=BF=86=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=9A=84=E4=BC=9A=E8=AF=9D=20#630?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/pipeline/process_stage/method/llm_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/core/pipeline/process_stage/method/llm_request.py b/astrbot/core/pipeline/process_stage/method/llm_request.py index fd9dde12d..5fa56eb68 100644 --- a/astrbot/core/pipeline/process_stage/method/llm_request.py +++ b/astrbot/core/pipeline/process_stage/method/llm_request.py @@ -151,7 +151,7 @@ class LLMRequestSubStage(Stage): return async def _save_to_history(self, event: AstrMessageEvent, req: ProviderRequest, llm_response: LLMResponse): - if not req or not req.conversation or not llm_response or not req.contexts: + if not req or not req.conversation or not llm_response: return if llm_response.role == "assistant":