mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-22 21:09:20 +08:00
加大文件上传超时时间
This commit is contained in:
parent
1b2b7927ee
commit
11a145924f
@ -516,8 +516,8 @@ async function uploadFile(fileUrl: string, refreshToken: string) {
|
||||
data: fileData,
|
||||
// 100M限制
|
||||
maxBodyLength: FILE_MAX_SIZE,
|
||||
// 60秒超时
|
||||
timeout: 60000,
|
||||
// 120秒超时
|
||||
timeout: 120000,
|
||||
headers: {
|
||||
'Content-Type': mimeType,
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
Loading…
Reference in New Issue
Block a user