From 3af8ee5cb60558d439989107af55a27c2a9d3861 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Sat, 3 Jan 2026 14:38:11 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E8=B6=85=E6=97=B6=E4=B9=9F?= =?UTF-8?q?=E5=BC=BA=E5=88=B6=E5=BC=95=E7=94=A8=E5=9B=9E=E5=A4=8D=EF=BC=88?= =?UTF-8?q?=E9=9D=9Ellm=E5=88=A4=E5=AE=9A=E6=97=B6=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/heart_flow/heartFC_chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chat/heart_flow/heartFC_chat.py b/src/chat/heart_flow/heartFC_chat.py index 2f58f704..ba9bf388 100644 --- a/src/chat/heart_flow/heartFC_chat.py +++ b/src/chat/heart_flow/heartFC_chat.py @@ -545,9 +545,9 @@ class HeartFChatting: new_message_count = message_api.count_new_messages( chat_id=self.chat_stream.stream_id, start_time=self.last_read_time, end_time=time.time() ) - need_reply = new_message_count >= random.randint(2, 3) + need_reply = new_message_count >= random.randint(2, 3) or time.time() - self.last_read_time > 90 if need_reply: - logger.info(f"{self.log_prefix} 从思考到回复,共有{new_message_count}条新消息,使用引用回复") + logger.info(f"{self.log_prefix} 从思考到回复,共有{new_message_count}条新消息,使用引用回复,或者上次回复时间超过90秒") reply_text = "" first_replied = False