瀏覽代碼

切换百度Ai,ERNIE Bot

anderx 2 年之前
父節點
當前提交
184f49cfec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/goafanti/ChatAI/service/impl/ChatAiServiceImpl.java

+ 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());