Commit 697c05d5 authored by alex yao's avatar alex yao

fix:创建开场白

parent 022073b6
...@@ -176,7 +176,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ ...@@ -176,7 +176,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
private static String buildPreambleConfigSystem(String configSystem, String agentTitle, String agentDesc, String agentSystem) { private static String buildPreambleConfigSystem(String configSystem, String agentTitle, String agentDesc, String agentSystem) {
//若 name desc prompt 都为空,传入默认参数 name 入参 智能问答机器人 desc 随时为你解答问题 //若 name desc prompt 都为空,传入默认参数 name 入参 智能问答机器人 desc 随时为你解答问题
if (StringUtils.isBlank(configSystem) && StringUtils.isBlank(agentTitle) && StringUtils.isBlank(agentDesc)) { if (StringUtils.isBlank(agentSystem) && StringUtils.isBlank(agentTitle) && StringUtils.isBlank(agentDesc)) {
return configSystem.replace("${agent_title}", "智能问答机器人").replace("${agent_desc}", " 随时为你解答问题"); return configSystem.replace("${agent_title}", "智能问答机器人").replace("${agent_desc}", " 随时为你解答问题");
} }
//若 name desc 其中一项不为空则入参 不传入prompt //若 name desc 其中一项不为空则入参 不传入prompt
......
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