也许是修好了表达学习吧

This commit is contained in:
minecraft1024a
2025-09-20 20:45:56 +08:00
parent 4fcaa8e7fb
commit b42608c49a

View File

@@ -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()