diff --git a/src/chat/memory_system/async_instant_memory_wrapper.py b/src/chat/memory_system/async_instant_memory_wrapper.py index 8f6762626..ec672b186 100644 --- a/src/chat/memory_system/async_instant_memory_wrapper.py +++ b/src/chat/memory_system/async_instant_memory_wrapper.py @@ -33,7 +33,7 @@ class AsyncInstantMemoryWrapper: try: from src.chat.memory_system.instant_memory import InstantMemory self.llm_memory = InstantMemory(self.chat_id) - logger.debug(f"LLM瞬时记忆系统已初始化: {self.chat_id}") + logger.info(f"LLM瞬时记忆系统已初始化: {self.chat_id}") except Exception as e: logger.warning(f"LLM瞬时记忆系统初始化失败: {e}") self.llm_memory_enabled = False # 初始化失败则禁用 @@ -44,7 +44,7 @@ class AsyncInstantMemoryWrapper: try: from src.chat.memory_system.vector_instant_memory import VectorInstantMemoryV2 self.vector_memory = VectorInstantMemoryV2(self.chat_id) - logger.debug(f"向量瞬时记忆系统已初始化: {self.chat_id}") + logger.info(f"向量瞬时记忆系统已初始化: {self.chat_id}") except Exception as e: logger.warning(f"向量瞬时记忆系统初始化失败: {e}") self.vector_memory_enabled = False # 初始化失败则禁用 diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index 98c43939a..f5df0822c 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -251,6 +251,8 @@ consolidation_similarity_threshold = 0.7 # 相似度阈值 consolidation_check_percentage = 0.05 # 检查节点比例 enable_instant_memory = false # 是否启用即时记忆,测试功能,可能存在未知问题 +enable_llm_instant_memory = true # 是否启用基于LLM的瞬时记忆 +enable_vector_instant_memory = true # 是否启用基于向量的瞬时记忆 #不希望记忆的词,已经记忆的不会受到影响,需要手动清理 memory_ban_words = [ "表情包", "图片", "回复", "聊天记录" ]