Explorar o código

切换百度Ai,ERNIE Bot

anderx %!s(int64=2) %!d(string=hai) anos
pai
achega
184f49cfec

+ 2 - 2
src/main/java/com/goafanti/ChatAI/service/impl/ChatAiServiceImpl.java

@@ -37,8 +37,8 @@ public class ChatAiServiceImpl implements ChatAiService {
         SseMap.sseEmitterMap.put(in.getUserId(), new SseResult(in.getUserId(), System.currentTimeMillis(), sseEmitter));
         try {
 //            先将数据返回,异步调用返回数据
-//            baiduChatUtils.sendBaiduAiStream(in);
-            baiduChatUtils.sendERNIEBOT4Stream(in);
+            baiduChatUtils.sendBaiduAiStream(in);
+//            baiduChatUtils.sendERNIEBOT4Stream(in);
         } catch (IOException e) {
             e.printStackTrace();
             throw new BusinessException("文言一心调用失败"+e.getLocalizedMessage());