fix(llm): 在 RagHttpService 中添加 Content-Type 头
- 在发送 POST 请求时,添加了 "Content-Type: multipart/form-data" 头 - 这个修改确保了请求以正确的格式发送,避免了服务器端的解析错误
This commit is contained in:
parent
1a0e6ebe20
commit
9cc54c78d6
@ -304,6 +304,7 @@ public class RagHttpService {
|
||||
|
||||
// 构建请求参数
|
||||
HttpResponse<String> response = Unirest.post(ragEmbed)
|
||||
.header("Content-Type", "multipart/form-data")
|
||||
.field("file_id", fileId)
|
||||
.field("file", reqVO.getFileInputStream(), fileName)
|
||||
.asString();
|
||||
|
Loading…
x
Reference in New Issue
Block a user