Commit 665f349b authored by alex yao's avatar alex yao

fix: 修复门户页对话文件不生效问题

parent 74a0fa36
...@@ -109,7 +109,7 @@ public class PortalServiceImpl implements PortalService { ...@@ -109,7 +109,7 @@ public class PortalServiceImpl implements PortalService {
List<Integer> kdIds = knowledgeService.getKdIdsByKnowledgeInfoIds(callEntity.getKnowledgeIds());//获取知识库ids List<Integer> kdIds = knowledgeService.getKdIdsByKnowledgeInfoIds(callEntity.getKnowledgeIds());//获取知识库ids
List<Message> messages = AgentApplicationTools.buildMessage(callEntity.getDialoguesId(), agentId, userId, callEntity.getInput());//构建消息 List<Message> messages = AgentApplicationTools.buildMessage(callEntity.getDialoguesId(), agentId, userId, callEntity.getInput());//构建消息
List<Tool> tools; List<Tool> tools;
if (callEntity.getEnableSearchEngine()) { if (callEntity.getEnableSearchEngine() || StringUtils.isNotBlank(callEntity.getFileUrl())) {
tools = AgentApplicationTools.buildFunctionConfig(infoEntity.getVariableStructure(), infoEntity.getIsLongMemory(), callEntity.getDialoguesId(), agentId, infoEntity.getUnitIds(), infoEntity.getIsDocumentParsing());//构建函数配置 tools = AgentApplicationTools.buildFunctionConfig(infoEntity.getVariableStructure(), infoEntity.getIsLongMemory(), callEntity.getDialoguesId(), agentId, infoEntity.getUnitIds(), infoEntity.getIsDocumentParsing());//构建函数配置
} else { } else {
tools = new ArrayList<>(); tools = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment