Commit b4555589 authored by alex yao's avatar alex yao

fix: 角色指令优化没有对原本的指令进行优化 --bug = 1010603

parent eb7b0ee5
...@@ -235,9 +235,9 @@ public class AgentApplicationServiceImpl implements AgentApplicationService { ...@@ -235,9 +235,9 @@ public class AgentApplicationServiceImpl implements AgentApplicationService {
systemMessage.setContent(configEntity.getConfigSystem()); systemMessage.setContent(configEntity.getConfigSystem());
systemMessage.setRole(LLMRoleEnum.SYSTEM.getRole()); systemMessage.setRole(LLMRoleEnum.SYSTEM.getRole());
String content = "[\"" + input + "\"]"; String content = "标题或原角色指令\n [\"" + input + "\"]";
if (StringUtils.isNotBlank(optimizationSuggestions)) { if (StringUtils.isNotBlank(optimizationSuggestions)) {
content = content + "\n 优化建议:[" + optimizationSuggestions + "]"; content = content + "\n 优化建议 \n [" + optimizationSuggestions + "]";
} }
Message message = new Message(); Message message = new Message();
message.setContent(content); message.setContent(content);
......
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