From 0edfd15f1097c7fd40bd026bb26344fcf3659673 Mon Sep 17 00:00:00 2001 From: Liuyang <2746366019@qq.com> Date: Sat, 1 Mar 2025 17:27:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(module-llm):=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=8E=89=20doc=20=E6=96=87=E4=BB=B6=E8=BD=AC=E6=8D=A2=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉了处理 doc 文件的代码块 - 保留了处理 md 文件的注释代码块 --- .../llm/service/http/RagHttpService.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 e005c7fc1..394be88a5 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 @@ -415,15 +415,15 @@ public class RagHttpService { Path tempFilePath = downloadFileToTemp(fileUrl, fileName); log.info("文件已下载到临时目录: {}", tempFilePath); - String fileSuffix = getFileSuffix(fileName); - if ("doc".equals(fileSuffix)) { - log.info("正在处理 doc 文件"); - try { - tempFilePath= converterDocToDocx(tempFilePath.toString(), tempFilePath.toString().replace(".doc", ".docx")); - } catch (Exception e) { - throw new RuntimeException(e); - } - } +// String fileSuffix = getFileSuffix(fileName); +// if ("doc".equals(fileSuffix)) { +// log.info("正在处理 doc 文件"); +// try { +// tempFilePath= converterDocToDocx(tempFilePath.toString(), tempFilePath.toString().replace(".doc", ".docx")); +// } catch (Exception e) { +// throw new RuntimeException(e); +// } +// } // if ("md".equals(fileSuffix)) { // log.info("正在处理 md 文件");