mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-03 08:12:26 +08:00
fix: 增加写入超时时间支持大请求体
- 将 chat_handler_base 的写入超时从 10 秒增加到 60 秒 - 将 cli_handler_base 的写入超时从 10 秒增加到 60 秒 - 将 http_client 的写入超时从 10 秒增加到 60 秒 - 支持包含大量数据(如图片)的长对话请求
This commit is contained in:
@@ -42,7 +42,7 @@ class HTTPClientPool:
|
||||
timeout=httpx.Timeout(
|
||||
connect=10.0, # 连接超时
|
||||
read=300.0, # 读取超时(5分钟,适合流式响应)
|
||||
write=10.0, # 写入超时
|
||||
write=60.0, # 写入超时(60秒,支持大请求体)
|
||||
pool=5.0, # 连接池超时
|
||||
),
|
||||
limits=httpx.Limits(
|
||||
|
||||
Reference in New Issue
Block a user