From 7c5315b30dde53cb93fe997b083ce86ee1d7cd18 Mon Sep 17 00:00:00 2001 From: zihanjian Date: Thu, 1 Jan 2026 15:16:32 +0800 Subject: [PATCH] fix(robot): correct logic for reasoning mode and message sending --- robot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot.py b/robot.py index 24628e1..6e206d2 100644 --- a/robot.py +++ b/robot.py @@ -677,11 +677,11 @@ class Robot(Job): reasoning_chat = None if reasoning_requested: - if force_reasoning and not getattr(ctx, 'reasoning_requested', False): + if force_reasoning: self.LOG.info("群配置了 force_reasoning,闲聊将使用推理模型。") else: self.LOG.info("检测到推理模式请求,将启用深度思考。") - ctx.send_text("正在深度思考,请稍候...", record_message=False) + ctx.send_text("正在深度思考,请稍候...", record_message=False) reasoning_chat = self._get_reasoning_chat_model() if reasoning_chat: ctx.chat = reasoning_chat