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":