修复了一下重复的代码问题,删除了不必要的会话级别 LLM 启停状态检查。

This commit is contained in:
advent259141
2025-06-29 10:02:04 +08:00
parent d121d08d05
commit ec5d71d0e1
@@ -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(