增加header 向量知识库

This commit is contained in:
limin 2025-02-12 16:32:14 +08:00
parent 1a0e6ebe20
commit 64ed26c6fd

View File

@ -131,6 +131,7 @@ public class RagHttpService {
// 发送上传请求
HttpResponse<String> uploadResponse = Unirest.post(ragUploadReqVO.getUrl())
.header("Content-Type", "multipart/form-data")
.field("file_id", ragUploadReqVO.getFileId())
.field("file", new ByteArrayInputStream(utf8Bytes), ragUploadReqVO.getFileName())
.asString();