mirror of
https://github.com/LLM-Red-Team/kimi-free-api.git
synced 2024-12-23 07:29: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,
|
data: fileData,
|
||||||
// 100M限制
|
// 100M限制
|
||||||
maxBodyLength: FILE_MAX_SIZE,
|
maxBodyLength: FILE_MAX_SIZE,
|
||||||
// 60秒超时
|
// 120秒超时
|
||||||
timeout: 60000,
|
timeout: 120000,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': mimeType,
|
'Content-Type': mimeType,
|
||||||
Authorization: `Bearer ${token}`,
|
Authorization: `Bearer ${token}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user