修复流式响应超时问题,设置读取不超时
All checks were successful
构建并部署 AI Agent 服务 / deploy (push) Successful in 5m40s

This commit is contained in:
2026-05-01 12:21:01 +08:00
parent 6d300ee8b4
commit 5bb1ae1724

View File

@@ -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 {