From 5a2319cd90eed5ce3f6c16d57a8eb7c1921c2e5f Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 24 Aug 2026 16:20:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20per=5Fstock=20call=5Fllm=E5=8A=A0concurr?= =?UTF-8?q?ent=3DTrue=E2=80=94=E2=80=94=E9=9D=9E=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8Frouter=E6=8C=89=E5=81=A5=E5=BA=B7=E5=88=86?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=85=A8=E5=8E=8Bkey4(6=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E6=97=B6key4=E5=85=AD=E5=80=8D=E5=8E=8B=E5=8A=9B=E5=85=B6?= =?UTF-8?q?=E4=BB=965=E4=B8=AA=E9=97=B2=E7=BD=AE),=E5=BC=80concurrent?= =?UTF-8?q?=E5=90=8Eround-robin=E5=88=86key=3D6key=E9=BD=90=E7=94=A8(?= =?UTF-8?q?=E8=80=81=E8=8E=AB:6=E4=B8=AAkey!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/per_stock_reassess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/profile-scripts/per_stock_reassess.py b/deploy/profile-scripts/per_stock_reassess.py index d06c471d..477504f9 100644 --- a/deploy/profile-scripts/per_stock_reassess.py +++ b/deploy/profile-scripts/per_stock_reassess.py @@ -441,7 +441,7 @@ def main(): if _prompt: try: # 2026-08-13 超时修复:timeout 150→90, retries 1→0(3只×(90+90+20)=600s临界,减到90+0重试=270s安全) - _llm_result = call_llm(_prompt, max_tokens=None, timeout=300, retries=0, backoff=0) # 2026-08-24 90→300: ocg_router单key上游180s+失败换key重试,90s客户端先断=自己限死自己 + _llm_result = call_llm(_prompt, max_tokens=None, timeout=300, retries=0, backoff=0, concurrent=True) # 2026-08-24 并发模式: router round-robin分key(6 key齐用),90→300防自断 if _llm_result["ok"]: _full_analysis_text = _llm_result["content"] print(f" ✅ LLM12维分析完成({len(_full_analysis_text)}字, {_llm_result['elapsed']:.1f}s)", flush=True)