fix(admin,server): 上传改用 file.buffer 并移除手写 multipart 头
This commit is contained in:
@@ -35,7 +35,6 @@ export const aiChatApi = {
|
||||
form.append('file', file);
|
||||
return (
|
||||
await api.post<AiApiResponse<AiAttachment>>('/ai/chat/attachments', form, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
timeout: 120_000,
|
||||
})
|
||||
).data;
|
||||
|
||||
Reference in New Issue
Block a user