From 26c866695e87f0f8d3493e5e456d6fcfa6adac4c Mon Sep 17 00:00:00 2001 From: wulin Date: Fri, 17 Nov 2023 09:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=9F=E5=B0=98=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/qiuguo/iot/third/nlp/AliYunXingChen.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iot-common/iot-third/src/main/java/com/qiuguo/iot/third/nlp/AliYunXingChen.java b/iot-common/iot-third/src/main/java/com/qiuguo/iot/third/nlp/AliYunXingChen.java index c7698b9..f0c877d 100644 --- a/iot-common/iot-third/src/main/java/com/qiuguo/iot/third/nlp/AliYunXingChen.java +++ b/iot-common/iot-third/src/main/java/com/qiuguo/iot/third/nlp/AliYunXingChen.java @@ -87,6 +87,7 @@ public class AliYunXingChen { response.blockingForEach(m -> { String v = m.getChoices().get(0).getMessages().get(0).getContent().replaceAll(recordMessage.getMsg(), ""); onNext.sendMessage(v); + recordMessage.setMsg(m.getChoices().get(0).getMessages().get(0).getContent()); if("stop".equals(m.getChoices().get(0).getStopReason())){ // @@ -94,6 +95,7 @@ public class AliYunXingChen { .role(m.getChoices().get(0).getMessages().get(0).getRole()) .content(m.getChoices().get(0).getMessages().get(0).getContent()) .build(); + qwenReplyResponse.setResut(message1.getContent()); addMessage(message1); onNext.finish(); }