fix:重启服务后存在多个闲聊助手 (#1928)

This commit is contained in:
wangk
2024-11-26 21:41:20 +08:00
committed by GitHub
parent 722f40cdf7
commit 224c114d20

View File

@@ -49,6 +49,6 @@ public class S2SmallTalkDemo extends S2BaseDemo {
boolean checkNeedToRun() {
List<String> agentNames =
agentService.getAgents().stream().map(Agent::getName).collect(Collectors.toList());
return !agentNames.contains("闲聊");
return !agentNames.contains("闲聊助手");
}
}