From b72cb3c396cd31b416e2d1935b27952e76142b51 Mon Sep 17 00:00:00 2001 From: hmo Date: Fri, 14 Aug 2026 05:02:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20per=5Fstock=5Freassess=20LLM=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E4=BF=AE=E5=A4=8D=E2=80=94=E2=80=94timeout=20150?= =?UTF-8?q?=E2=86=9290,=20retries=201=E2=86=920(3=E5=8F=AA=C3=97(90+90+20)?= =?UTF-8?q?=3D600s=E4=B8=B4=E7=95=8C,=E5=87=8F=E5=88=B0270s=E5=AE=89?= =?UTF-8?q?=E5=85=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/per_stock_reassess.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/profile-scripts/per_stock_reassess.py b/deploy/profile-scripts/per_stock_reassess.py index 62def05e..65b269a7 100644 --- a/deploy/profile-scripts/per_stock_reassess.py +++ b/deploy/profile-scripts/per_stock_reassess.py @@ -404,7 +404,8 @@ def main(): _full_analysis_text = None if _prompt: try: - _llm_result = call_llm(_prompt, max_tokens=4096, timeout=150, retries=1, backoff=20) + # 2026-08-13 超时修复:timeout 150→90, retries 1→0(3只×(90+90+20)=600s临界,减到90+0重试=270s安全) + _llm_result = call_llm(_prompt, max_tokens=4096, timeout=90, retries=0, backoff=0) if _llm_result["ok"]: _full_analysis_text = _llm_result["content"] print(f" ✅ LLM12维分析完成({len(_full_analysis_text)}字, {_llm_result['elapsed']:.1f}s)", flush=True)