fix:优化reply,填补缺失值,youhualog

This commit is contained in:
SengokuCola
2025-08-11 00:19:31 +08:00
parent 9e9e79694a
commit 3804124df8
7 changed files with 49 additions and 65 deletions

View File

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