refactor(module-llm): 注释掉 MD 文件处理代码
- 注释掉了处理 MD 文件的代码块 - 保留了创建 OkHttpClient 实例的逻辑
This commit is contained in:
parent
438559fbc5
commit
866f838245
@ -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 分钟");
|
||||
|
Loading…
x
Reference in New Issue
Block a user