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 3fb36cc3d..082ca180f 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -252,6 +252,8 @@ memory_forget_time = 48 #多长时间后的记忆会被遗忘 单位小时 memory_forget_percentage = 0.008 # 记忆遗忘比例 控制记忆遗忘程度 越大遗忘越多 建议保持默认 enable_instant_memory = false # 是否启用即时记忆,测试功能,可能存在未知问题 +enable_llm_instant_memory = true # 是否启用基于LLM的瞬时记忆 +enable_vector_instant_memory = true # 是否启用基于向量的瞬时记忆 #不希望记忆的词,已经记忆的不会受到影响,需要手动清理 memory_ban_words = [ "表情包", "图片", "回复", "聊天记录" ]