fix: self_repair call_llm加concurrent=True——走OCG router round-robin分摊key,避免直连401的key1

This commit is contained in:
hmo
2026-08-14 07:31:17 +08:00
parent f1c5e2762d
commit 864e6f123a
+1 -1
View File
@@ -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=90, retries=0, backoff=0)
res = call_llm(prompt, max_tokens=300, timeout=90, retries=0, backoff=0, concurrent=True)
if not res["ok"]:
raise RuntimeError(res["error"][:120])
text = res["content"]