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

fix: 长期记忆不生效

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