From ec5d71d0e1d6e438cbf803b72f9823a46c4ffd8e Mon Sep 17 00:00:00 2001 From: advent259141 <2968474907@qq.com> Date: Sun, 29 Jun 2025 10:02:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=9A=84=E4=BB=A3=E7=A0=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E4=BA=86=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E4=BC=9A=E8=AF=9D=E7=BA=A7=E5=88=AB=20LLM=20=E5=90=AF?= =?UTF-8?q?=E5=81=9C=E7=8A=B6=E6=80=81=E6=A3=80=E6=9F=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/pipeline/process_stage/method/llm_request.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/astrbot/core/pipeline/process_stage/method/llm_request.py b/astrbot/core/pipeline/process_stage/method/llm_request.py index d6542da88..dd4349813 100644 --- a/astrbot/core/pipeline/process_stage/method/llm_request.py +++ b/astrbot/core/pipeline/process_stage/method/llm_request.py @@ -89,11 +89,6 @@ class LLMRequestSubStage(Stage): "provider_request 必须是 ProviderRequest 类型。" ) - # 检查会话级别的LLM启停状态(防止事件钩子绕过会话级别限制) - if not SessionServiceManager.should_process_llm_request(event): - logger.debug(f"会话 {event.unified_msg_origin} 禁用了 LLM,拒绝事件钩子/插件的 LLM 请求。") - return - if req.conversation: all_contexts = json.loads(req.conversation.history) req.contexts = self._process_tool_message_pairs(