refactor(yudao-module-llm): 移除不必要的 HTTP状态码检查
- 删除了对 HTTP 状态码的检查逻辑- 移除了不必要的日志记录
This commit is contained in:
parent
81877b686c
commit
b29ed67f92
@ -313,17 +313,10 @@ public class RagHttpService {
|
||||
// 发送 POST 请求
|
||||
try {
|
||||
HttpResponse<String> response = Unirest.post(ragEmbed)
|
||||
.header(CONTENT_TYPE_HEADER, WORD_DOCUMENT_CONTENT_TYPE)
|
||||
.field("file_id", fileId)
|
||||
.field("file", reqVO.getFileInputStream(), fileName)
|
||||
.asString();
|
||||
|
||||
// 检查 HTTP 状态码
|
||||
if (response.getStatus() != HttpStatus.SC_OK) {
|
||||
log.error("HTTP请求失败,状态码: {}", response.getStatus());
|
||||
throw new RuntimeException("HTTP请求失败,状态码: " + response.getStatus());
|
||||
}
|
||||
|
||||
String responseBody = response.getBody();
|
||||
log.info("响应原始内容: {}", responseBody);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user