fix: mofin_health LLM故障误报修复——移除'finish_reason'错误模式(正常完成标志,非错误),连续误报根因
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user