From 5bb1ae172403aa850c9f85b8fa9f53487dcd05c7 Mon Sep 17 00:00:00 2001 From: root <953994191@qq.com> Date: Fri, 1 May 2026 12:21:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=81=E5=BC=8F=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E8=B6=85=E6=97=B6=E9=97=AE=E9=A2=98=EF=BC=8C=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E8=AF=BB=E5=8F=96=E4=B8=8D=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api_client.py b/frontend/src/api_client.py index c8d4697..499c375 100644 --- a/frontend/src/api_client.py +++ b/frontend/src/api_client.py @@ -149,7 +149,7 @@ class APIClient: f"{self.base_url}/chat/stream", json=payload, stream=True, - timeout=config.stream_timeout + timeout=(30, None) # 连接超时30秒,读取不超时 ) as response: if response.status_code != 200: yield {