refactor(yudao-module-llm): 修改 RagHttpService 中构建请求参数的 Content-Type

-将 Content-Type 从 "multipart/form-data" 修改为 "application/vnd.openxmlformats-officedocument.wordprocessingml
This commit is contained in:
Liuyang 2025-02-12 17:07:09 +08:00
parent f845bada70
commit b23daaa314

View File

@ -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();