From 55893bedd7c520bcdf56f687a8bc9fe9add9926f Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 10 Aug 2026 18:35:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mofin=5Fhealth=20LLM=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E7=BA=A7=E5=88=AB=E4=BF=AE=E6=AD=A3=EF=BC=88WARNING=E2=86=92IN?= =?UTF-8?q?FO=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/mofin_health.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/profile-scripts/mofin_health.py b/deploy/profile-scripts/mofin_health.py index bd2141f5..ec93e6e5 100644 --- a/deploy/profile-scripts/mofin_health.py +++ b/deploy/profile-scripts/mofin_health.py @@ -1053,13 +1053,13 @@ def build_report(): import sys as _sys if '/home/hmo/.hermes/profiles/position-analyst/scripts' not in _sys.path: _sys.path.insert(0, '/home/hmo/.hermes/profiles/position-analyst/scripts') - from alert_helper import notify, WARNING + from alert_helper import notify, INFO _first = llm_health["errors_recent"][0] if llm_health["errors_recent"] else {} notify("LLM端点故障", f"最近{llm_health['scan_window_min']}分钟{llm_health['error_count']}次调用失败" f"({_first.get('log','?')} {_first.get('time','?')}: {_first.get('msg','')[:80]})。" f"gateway进程可能正常但LLM服务不可用,请检查opencode.ai端点。", - WARNING) + INFO) except Exception as _ae: print(f"[LLM_MON] 告警发送失败: {_ae}", file=sys.stderr) feature_tree.setdefault("warn_detail", {})["llm"] = (