Commit 66ac59c1 authored by alex yao's avatar alex yao

fix: 长期记忆不生效

parent 509b4844
......@@ -557,9 +557,9 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
}
String searchMemoryContent = stringBuilder.toString();
promptTemplate = promptTemplate.replace("${longMemoryResult}", searchMemoryContent);
} else {
promptTemplate = promptTemplate.replace("${longMemoryResult}", StringUtils.EMPTY);
}
} else {
promptTemplate = promptTemplate.replace("${longMemoryResult}", StringUtils.EMPTY);
}
// 变量
......
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