From 21ed0079b85c7803e544aa274308bee1cd294cc3 Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Sat, 13 Dec 2025 16:34:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(long=5Fterm=5Fmanager):=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=8F=82=E6=95=B0=E5=90=8D=E7=A7=B0=EF=BC=8C=E4=BB=8E?= =?UTF-8?q?=20'object'=20=E6=94=B9=E4=B8=BA=20'obj'=20=E4=BB=A5=E9=81=BF?= =?UTF-8?q?=E5=85=8D=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/mem_monitor.py | 2 +- src/memory_graph/long_term_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 8395de3b8..a2fed8ddf 100644 --- a/src/memory_graph/long_term_manager.py +++ b/src/memory_graph/long_term_manager.py @@ -643,7 +643,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), )