炸飞Breaking形式并顺手修了一个数据库的小bug

This commit is contained in:
Furina-1013-create
2025-08-14 22:34:44 +08:00
committed by Windpicker-owo
parent 4eae2b8fe0
commit f19fbcb814
2 changed files with 16 additions and 132 deletions

View File

@@ -1800,7 +1800,7 @@ class HippocampusManager:
except Exception as e:
logger.error(f"文本产生激活值失败: {e}")
response = 0.0
keywords = [] # 在异常情况下初始化 keywords 为空列表
keywords = [] # 初始化 keywords 为空列表
return response, keywords
def get_memory_from_keyword(self, keyword: str, max_depth: int = 2) -> list: