From c5828538731202ca8fcb5826e69bc971f06f3809 Mon Sep 17 00:00:00 2001 From: hmo Date: Tue, 11 Aug 2026 15:08:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mofin=5Fhealth=20LLM=E6=95=85=E9=9A=9C?= =?UTF-8?q?=E8=AF=AF=E6=8A=A5=E4=BF=AE=E5=A4=8D=E2=80=94=E2=80=94=E7=A7=BB?= =?UTF-8?q?=E9=99=A4'finish=5Freason'=E9=94=99=E8=AF=AF=E6=A8=A1=E5=BC=8F(?= =?UTF-8?q?=E6=AD=A3=E5=B8=B8=E5=AE=8C=E6=88=90=E6=A0=87=E5=BF=97,?= =?UTF-8?q?=E9=9D=9E=E9=94=99=E8=AF=AF),=E8=BF=9E=E7=BB=AD=E8=AF=AF?= =?UTF-8?q?=E6=8A=A5=E6=A0=B9=E5=9B=A0?= 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, 3 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/mofin_health.py b/deploy/profile-scripts/mofin_health.py index 75151a37..a224cba1 100644 --- a/deploy/profile-scripts/mofin_health.py +++ b/deploy/profile-scripts/mofin_health.py @@ -1028,7 +1028,9 @@ def build_report(): llm_health = {"ok": True, "errors_recent": [], "scan_window_min": 60} _LLM_ERR_PATTERNS = [ "RemoteProtocolError", "Stream stale", "empty stream", - "peer closed connection", "finish_reason", "API call failed", + "peer closed connection", "API call failed", + # 2026-08-11 修复:移除 "finish_reason"——它是正常完成标志(INFO级别 Turn ended), + # 把它当错误导致连续误报"LLM端点故障"。真正的失败才报(RemoteProtocolError/Stream stale等)。 ] try: _err_logs = [