From 11f35ebf96984fdc9e56fea88382a80e951e8af7 Mon Sep 17 00:00:00 2001 From: Ruochen <1051989940@qq.com> Date: Sat, 7 Jun 2025 09:50:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20asyncio.wait=5Ffor?= =?UTF-8?q?=20=E5=8F=82=E6=95=B0=E9=A1=BA=E5=BA=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/dashboard/routes/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/dashboard/routes/config.py b/astrbot/dashboard/routes/config.py index b9adf2d96..8b158caaa 100644 --- a/astrbot/dashboard/routes/config.py +++ b/astrbot/dashboard/routes/config.py @@ -190,7 +190,7 @@ class ConfigRoute(Route): logger.debug(f"Attempting to check provider: {status_info['name']} (ID: {status_info['id']}, Type: {status_info['type']}, Model: {status_info['model']})") try: logger.debug(f"Sending 'Ping' to provider: {status_info['name']}") - response = await asyncio.wait_for(provider.text_chat(prompt="REPLY `PONG` ONLY", timeout=45.0)) + response = await asyncio.wait_for(provider.text_chat(prompt="REPLY `PONG` ONLY"), timeout=45.0) logger.debug(f"Received response from {status_info['name']}: {response}") # 只要 text_chat 调用成功返回一个 LLMResponse 对象 (即 response 不为 None),就认为可用 if response is not None: