Commit d1b0c21a authored by alex yao's avatar alex yao

fix:AI创建失败

parent 697c05d5
......@@ -202,12 +202,8 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
List<MultiContent> multiContents = new ArrayList<>();
multiContents.add(new MultiContent() {{
String configSystem = configEntity.getConfigSystem();
if (StringUtils.isNotEmpty(agentTitle)) {
configSystem = configSystem.replace("${agent_title}", agentTitle);
}
if (StringUtils.isNotEmpty(agentDesc)) {
configSystem = configSystem.replace("${agent_desc}", agentDesc);
}
configSystem = configSystem.replace("${agent_title}", StringUtils.isNotBlank(agentTitle) ? agentTitle : StringUtils.EMPTY);
configSystem = configSystem.replace("${agent_desc}", StringUtils.isNotBlank(agentDesc) ? agentDesc : StringUtils.EMPTY);
setText(configSystem);
setType("text");
}});
......@@ -243,12 +239,8 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
List<MultiContent> multiContents = new ArrayList<>();
multiContents.add(new MultiContent() {{
String configSystem = configEntity.getConfigSystem();
if (StringUtils.isNotBlank(agentTitle)) {
configSystem = configSystem.replace("${agent_title}", agentTitle);
}
if (StringUtils.isNotBlank(agentDesc)) {
configSystem = configSystem.replace("${agent_desc}", agentDesc);
}
configSystem = configSystem.replace("${agent_title}", StringUtils.isNotBlank(agentTitle) ? agentTitle : StringUtils.EMPTY);
configSystem = configSystem.replace("${agent_desc}", StringUtils.isNotBlank(agentDesc) ? agentDesc : StringUtils.EMPTY);
setText(configSystem);
setType("text");
}});
......@@ -306,9 +298,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
List<MultiContent> multiContents = new ArrayList<>();
multiContents.add(new MultiContent() {{
String configSystem = configEntity.getConfigSystem();
if (StringUtils.isNotBlank(input)) {
configSystem = configSystem.replace("${input}", input);
}
configSystem = configSystem.replace("${input}", StringUtils.isNotBlank(input) ? input : StringUtils.EMPTY);
setText(configSystem);
setType("text");
}});
......
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