diff --git a/src/common/mem_monitor.py b/src/common/mem_monitor.py index 6d0ad2d66..3774e39af 100644 --- a/src/common/mem_monitor.py +++ b/src/common/mem_monitor.py @@ -100,7 +100,7 @@ _monitor_thread: threading.Thread | None = None _stop_event: threading.Event = threading.Event() # 环境变量控制是否启用,防止所有环境一起开 -MEM_MONITOR_ENABLED = True +MEM_MONITOR_ENABLED = False # 触发详细采集的阈值 MEM_ABSOLUTE_THRESHOLD_MB = 1024.0 # 超过 1 GiB MEM_GROWTH_THRESHOLD_MB = 200.0 # 单次增长超过 200 MiB diff --git a/src/memory_graph/long_term_manager.py b/src/memory_graph/long_term_manager.py index 9c1b264d2..91fe1ef9c 100644 --- a/src/memory_graph/long_term_manager.py +++ b/src/memory_graph/long_term_manager.py @@ -729,7 +729,7 @@ class LongTermMemoryManager: subject=params.get("subject", source_stm.subject or "未知"), memory_type=params.get("memory_type", source_stm.memory_type or "fact"), 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), importance=params.get("importance", source_stm.importance), )