From 866f838245a06fea8d9beec6ced091a0fa1e9b93 Mon Sep 17 00:00:00 2001 From: Liuyang <2746366019@qq.com> Date: Sat, 1 Mar 2025 13:52:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor(module-llm):=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=8E=89=20MD=20=E6=96=87=E4=BB=B6=E5=A4=84=E7=90=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 注释掉了处理 MD 文件的代码块 - 保留了创建 OkHttpClient 实例的逻辑 --- .../module/llm/service/http/RagHttpService.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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 bc5a28512..e005c7fc1 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 @@ -425,14 +425,14 @@ public class RagHttpService { } } - if ("md".equals(fileSuffix)) { - log.info("正在处理 md 文件"); - try { - tempFilePath= converterMdToTxt(tempFilePath.toString(), tempFilePath.toString().replace(".md", ".txt")); - } catch (Exception e) { - throw new RuntimeException(e); - } - } +// if ("md".equals(fileSuffix)) { +// log.info("正在处理 md 文件"); +// try { +// tempFilePath= converterMdToTxt(tempFilePath.toString(), tempFilePath.toString().replace(".md", ".txt")); +// } catch (Exception e) { +// throw new RuntimeException(e); +// } +// } // 创建 OkHttpClient 实例 log.info("创建 OkHttpClient 实例,设置超时时间为 3 分钟");