fix: 增加写入超时时间支持大请求体

- 将 chat_handler_base 的写入超时从 10 秒增加到 60 秒
- 将 cli_handler_base 的写入超时从 10 秒增加到 60 秒
- 将 http_client 的写入超时从 10 秒增加到 60 秒
- 支持包含大量数据(如图片)的长对话请求
This commit is contained in:
fawney19
2025-12-11 11:21:46 +08:00
parent 4a5b551e2c
commit 8f914d89bb
3 changed files with 3 additions and 3 deletions

View File

@@ -505,7 +505,7 @@ class CliMessageHandlerBase(BaseMessageHandler):
timeout_config = httpx.Timeout(
connect=10.0,
read=float(endpoint.timeout),
write=10.0,
write=60.0, # 写入超时增加到60秒支持大请求体如包含图片的长对话
pool=10.0,
)