feat(plugin): 禁用 hello_world_plugin 插件
refactor(prompt): 将日志级别从 info 调整为 debug fix(mem_monitor): 启用内存监控并调整监控间隔至 2400s feat(llm_models): 添加系统提示支持,优化请求策略 refactor(main): 更新内存监控启动日志信息 refactor(user_profile_tool): 将用户画像更新日志级别调整为 debug refactor(exa_engine): 移除搜索引擎请求中的高亮片段选项 feat(system_prompt): 添加系统提示内容
This commit is contained in:
@@ -101,7 +101,7 @@ _monitor_thread: threading.Thread | None = None
|
||||
_stop_event: threading.Event = threading.Event()
|
||||
|
||||
# 环境变量控制是否启用,防止所有环境一起开
|
||||
MEM_MONITOR_ENABLED = False
|
||||
MEM_MONITOR_ENABLED = True
|
||||
|
||||
|
||||
def start_tracemalloc(max_frames: int = 25) -> None:
|
||||
@@ -240,7 +240,7 @@ def log_type_memory_diff() -> None:
|
||||
_last_type_summary = curr
|
||||
|
||||
|
||||
def periodic_mem_monitor(interval_sec: int = 900, tracemalloc_limit: int = 20, objgraph_limit: int = 20) -> None:
|
||||
def periodic_mem_monitor(interval_sec: int = 2400, tracemalloc_limit: int = 20, objgraph_limit: int = 20) -> None:
|
||||
"""后台循环:定期记录 RSS、tracemalloc diff、对象增长情况
|
||||
|
||||
Args:
|
||||
@@ -275,7 +275,7 @@ def periodic_mem_monitor(interval_sec: int = 900, tracemalloc_limit: int = 20, o
|
||||
logger.info("Memory monitor thread stopped")
|
||||
|
||||
|
||||
def start_background_monitor(interval_sec: int = 300, tracemalloc_limit: int = 20, objgraph_limit: int = 20) -> bool:
|
||||
def start_background_monitor(interval_sec: int = 2400, tracemalloc_limit: int = 20, objgraph_limit: int = 20) -> bool:
|
||||
"""在项目入口调用,用线程避免阻塞主 event loop
|
||||
|
||||
Args:
|
||||
|
||||
Reference in New Issue
Block a user