From a4e7cd67b7814d8076fb016ecbfce972a92f3a4b Mon Sep 17 00:00:00 2001 From: Liuyang <2746366019@qq.com> Date: Sun, 2 Mar 2025 01:21:01 +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 文件转换为 docx 文件的代码块 - 保留了其他文件类型处理的注释代码 --- .../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 aa0998ef9..ac683ba3e 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 文件");