feat: 添加主动思考功能开关检查

This commit is contained in:
Windpicker-owo
2025-11-09 16:48:05 +08:00
parent f4d2b54f83
commit f356ccfb76

View File

@@ -525,6 +525,11 @@ async def execute_proactive_thinking(stream_id: str):
config = global_config.proactive_thinking
# 首先检查总开关
if not config.enable:
logger.debug(f"主动思考功能已关闭,跳过执行 {stream_id}")
return
logger.debug(f"🤔 开始主动思考 {stream_id}")
try: