refactor(yudao-module-llm): 修改 RagHttpService 中构建请求参数的 Content-Type
-将 Content-Type 从 "multipart/form-data" 修改为 "application/vnd.openxmlformats-officedocument.wordprocessingml
This commit is contained in:
parent
f845bada70
commit
b23daaa314
@ -304,7 +304,7 @@ public class RagHttpService {
|
||||
|
||||
// 构建请求参数
|
||||
HttpResponse<String> response = Unirest.post(ragEmbed)
|
||||
.header("Content-Type", "multipart/form-data")
|
||||
.header("Content-Type", "application/vnd.openxmlformats-officedocument.wordprocessingml.document")
|
||||
.field("file_id", fileId)
|
||||
.field("file", reqVO.getFileInputStream(), fileName)
|
||||
.asString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user