1. 调整对话内容排序

jinan_dev
xueqingkun 5 months ago
parent 6749e79ba7
commit a3a1bdf1e8

@ -202,7 +202,7 @@ public class ChatServiceImpl implements ChatService {
Assert.notEmpty(conversationId, "会话id不能为空");
IPage<ConversationQa> qaPage = conversationQaService.lambdaQuery().eq(ConversationQa::getConversationId, conversationId)
.orderBy(true, false, ConversationQa::getQuestionTime).page(Page.of(page, size));
.orderBy(true, true, ConversationQa::getQuestionTime).page(Page.of(page, size));
return qaPage.convert(ChatResVO::new);
}

@ -278,7 +278,7 @@ public class DifyApiUtil {
}
boolean currentFileType = StrUtil.equalsAny(minioFile.getFileType(), "doc", "docx", "txt", "md", "pdf");
if (!currentFileType) {
log.warn("文件:{}类型非doc、docx、txt、md、pdf不进行知识库维护...", minioFile.getFilename());
log.warn("文件:{} 文件类型非doc、docx、txt、md、pdf不进行知识库维护...", minioFile.getFilename());
return false;
}
return true;

Loading…
Cancel
Save