替换@小果

This commit is contained in:
wulin 2023-11-21 00:47:27 +08:00
parent 67e6a25bdf
commit 7374bdfb14

View File

@ -80,7 +80,7 @@ public class DeviceController {
private Long timeOut;//2分钟
@PostMapping("/talk")
public Mono<BaseMessageResp> deviceInit(@RequestBody UserTalkRequst userTalkRequst){
return nlpService.getActionWithLacSingle(userTalkRequst.getId(), userTalkRequst.getAsk(), someProperties.getType())
return nlpService.getActionWithLacSingle(userTalkRequst.getId(), userTalkRequst.getAsk().replace("@小果(智能AI助手) ", ""), someProperties.getType())
.defaultIfEmpty(new Actions())
.flatMap(actions -> {
BaseSession session = new BaseSession();