增加header 向量知识库
This commit is contained in:
parent
1a0e6ebe20
commit
64ed26c6fd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user