Update heartFC_chat.py

pull/1217/head
SengokuCola 2025-08-23 12:40:03 +08:00
parent 9fe19671ec
commit ca4da9af5f
1 changed files with 5 additions and 5 deletions

View File

@ -386,11 +386,11 @@ class HeartFChatting:
await self.relationship_builder.build_relation() await self.relationship_builder.build_relation()
await self.expression_learner.trigger_learning_for_chat() await self.expression_learner.trigger_learning_for_chat()
# 记忆构建为当前chat_id构建记忆 # # 记忆构建为当前chat_id构建记忆
try: # try:
await hippocampus_manager.build_memory_for_chat(self.stream_id) # await hippocampus_manager.build_memory_for_chat(self.stream_id)
except Exception as e: # except Exception as e:
logger.error(f"{self.log_prefix} 记忆构建失败: {e}") # logger.error(f"{self.log_prefix} 记忆构建失败: {e}")
available_actions: Dict[str, ActionInfo] = {} available_actions: Dict[str, ActionInfo] = {}
if random.random() > self.focus_value_control.get_current_focus_value() and mode == ChatMode.FOCUS: if random.random() > self.focus_value_control.get_current_focus_value() and mode == ChatMode.FOCUS: