From 0edd7e3d1146c69099492f9a517991c52ba0dc6e Mon Sep 17 00:00:00 2001 From: Liuyang <2746366019@qq.com> Date: Thu, 13 Feb 2025 16:20:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor(module-llm):=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0=E5=92=8C=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86-=20=E7=A7=BB=E9=99=A4=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF=E8=BE=93=E5=87=BA?= =?UTF-8?q?=EF=BC=8C=E7=AE=80=E5=8C=96=E6=97=A5=E5=BF=97=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=20-=20=E5=9C=A8=E4=B8=89=E4=B8=AA=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BA=86=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E9=81=BF=E5=85=8D=E5=86=97=E4=BD=99?= =?UTF-8?q?=E7=9A=84=E5=BC=82=E5=B8=B8=E5=8C=85=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/llm/service/async/AsyncKnowledgeBase.java | 2 +- .../yudao/module/llm/service/http/RagHttpService.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/async/AsyncKnowledgeBase.java b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/async/AsyncKnowledgeBase.java index 1a88a940f..f0a96c749 100644 --- a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/async/AsyncKnowledgeBase.java +++ b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/async/AsyncKnowledgeBase.java @@ -119,7 +119,7 @@ public class AsyncKnowledgeBase { ragHttpService.knowledgeEmbed(ragEmbedReqVo, id); } catch (Exception e) { - log.error("the creation of the knowledge base error : {}", e.getMessage(), e); + log.error("the creation of the knowledge base error : {}", e.getMessage()); throw e; } } diff --git a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/http/RagHttpService.java b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/http/RagHttpService.java index 189f29d93..53f15d500 100644 --- a/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/http/RagHttpService.java +++ b/yudao-module-llm/yudao-module-llm-biz/src/main/java/cn/iocoder/yudao/module/llm/service/http/RagHttpService.java @@ -179,7 +179,7 @@ public class RagHttpService { } catch (UnirestException e) { - throw new RuntimeException("文件上传失败: " + e.getMessage(), e); + throw new RuntimeException("文件上传失败: " + e.getMessage()); } } @@ -346,7 +346,7 @@ public class RagHttpService { } } catch (JSONException e) { log.error("{},原始响应内容: {}", JSON_PARSE_ERROR_MSG, responseBody); - throw new RuntimeException(JSON_PARSE_ERROR_MSG + ": " + e.getMessage(), e); + throw new RuntimeException(JSON_PARSE_ERROR_MSG + ": " + e.getMessage()); } } @@ -355,7 +355,7 @@ public class RagHttpService { */ private void handleFailure (KnowledgeDocumentsDO documents, String errorMsg, Exception e) { updateFileState(documents, KnowledgeStatusEnum.UPLOAD_FAILED); - log.error("{}: {}", errorMsg, e.getMessage(), e); + log.error("handleFailure {}: {}", errorMsg, e.getMessage()); throw new RuntimeException(errorMsg, e); }