fix(llm): 修复 md 文件转换后的文件格式
- 将 md 文件转换后的文件格式从 docx 修改为 txt -确保文件名后缀正确替换,避免产生错误的文件类型
This commit is contained in:
parent
80590896cd
commit
438559fbc5
@ -428,7 +428,7 @@ public class RagHttpService {
|
||||
if ("md".equals(fileSuffix)) {
|
||||
log.info("正在处理 md 文件");
|
||||
try {
|
||||
tempFilePath= converterMdToTxt(tempFilePath.toString(), tempFilePath.toString().replace(".md", ".docx"));
|
||||
tempFilePath= converterMdToTxt(tempFilePath.toString(), tempFilePath.toString().replace(".md", ".txt"));
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user