From b42608c49a2b61e2eed22aa7edd1300b11a2e3dd Mon Sep 17 00:00:00 2001 From: minecraft1024a Date: Sat, 20 Sep 2025 20:45:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=9F=E8=AE=B8=E6=98=AF=E4=BF=AE=E5=A5=BD?= =?UTF-8?q?=E4=BA=86=E8=A1=A8=E8=BE=BE=E5=AD=A6=E4=B9=A0=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/chat_loop/heartFC_chat.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/chat/chat_loop/heartFC_chat.py b/src/chat/chat_loop/heartFC_chat.py index 47afab50d..b1c7455b0 100644 --- a/src/chat/chat_loop/heartFC_chat.py +++ b/src/chat/chat_loop/heartFC_chat.py @@ -435,6 +435,13 @@ class HeartFChatting: # Messages should be processed action_type = await self.cycle_processor.observe(interest_value=interest_value) + # 尝试触发表达学习 + if self.context.expression_learner: + try: + await self.context.expression_learner.trigger_learning_for_chat() + except Exception as e: + logger.error(f"{self.context.log_prefix} 表达学习触发失败: {e}") + # 管理no_reply计数器 if action_type != "no_reply": self.recent_interest_records.clear()