From 5ef86c6fa9d490f558be254773e8576853f4507e Mon Sep 17 00:00:00 2001 From: zhaoweijie Date: Wed, 17 Dec 2025 09:27:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(LLMAPI):=20=E5=A2=9E=E5=8A=A0API=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将LLM API调用的超时时间从15秒延长到60秒 - 防止因网络延迟或模型响应慢导致的超时错误 - 提高长文本生成任务的稳定性 --- backend/AgentCoord/LLMAPI/LLMAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/AgentCoord/LLMAPI/LLMAPI.py b/backend/AgentCoord/LLMAPI/LLMAPI.py index 32d361b..e176316 100644 --- a/backend/AgentCoord/LLMAPI/LLMAPI.py +++ b/backend/AgentCoord/LLMAPI/LLMAPI.py @@ -245,7 +245,7 @@ def _cons_kwargs(messages: list[dict]) -> dict: "messages": messages, "max_tokens": 2000, "temperature": 0.3, - "timeout": 15, + "timeout": 60, } kwargs_mode = {"model": MODEL} kwargs.update(kwargs_mode)