This commit is contained in:
LuiKlee
2025-12-13 16:40:00 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ _monitor_thread: threading.Thread | None = None
_stop_event: threading.Event = threading.Event() _stop_event: threading.Event = threading.Event()
# 环境变量控制是否启用,防止所有环境一起开 # 环境变量控制是否启用,防止所有环境一起开
MEM_MONITOR_ENABLED = True MEM_MONITOR_ENABLED = False
# 触发详细采集的阈值 # 触发详细采集的阈值
MEM_ABSOLUTE_THRESHOLD_MB = 1024.0 # 超过 1 GiB MEM_ABSOLUTE_THRESHOLD_MB = 1024.0 # 超过 1 GiB
MEM_GROWTH_THRESHOLD_MB = 200.0 # 单次增长超过 200 MiB MEM_GROWTH_THRESHOLD_MB = 200.0 # 单次增长超过 200 MiB

View File

@@ -729,7 +729,7 @@ class LongTermMemoryManager:
subject=params.get("subject", source_stm.subject or "未知"), subject=params.get("subject", source_stm.subject or "未知"),
memory_type=params.get("memory_type", source_stm.memory_type or "fact"), memory_type=params.get("memory_type", source_stm.memory_type or "fact"),
topic=params.get("topic", source_stm.topic or source_stm.content[:50]), topic=params.get("topic", source_stm.topic or source_stm.content[:50]),
object=params.get("object", source_stm.object), obj=params.get("object", source_stm.object),
attributes=params.get("attributes", source_stm.attributes), attributes=params.get("attributes", source_stm.attributes),
importance=params.get("importance", source_stm.importance), importance=params.get("importance", source_stm.importance),
) )