fix: self_repair LLM超时修复——timeout 120→90, retries 1→0(多failure循环×(120+120+10)=超时,减到90+0重试安全)
This commit is contained in:
@@ -179,7 +179,7 @@ def llm_diagnose(failure):
|
||||
# session 指令冻结+上下文无限累积,2026-07-21 废弃)
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
from llm_client import call_llm
|
||||
res = call_llm(prompt, max_tokens=300, timeout=120, retries=1, backoff=10)
|
||||
res = call_llm(prompt, max_tokens=300, timeout=90, retries=0, backoff=0)
|
||||
if not res["ok"]:
|
||||
raise RuntimeError(res["error"][:120])
|
||||
text = res["content"]
|
||||
|
||||
Reference in New Issue
Block a user