Przeglądaj źródła

ai业务逻辑修改

yangshun 3 tygodni temu
rodzic
commit
50e649a637

+ 2 - 2
guoyan-ai/src/main/java/com/cy/guoyan/admin/module/ai/service/aiservice/AiSelectionService.java

@@ -213,9 +213,9 @@ public class AiSelectionService implements AiService {
         if (sendReqVO.getAppType() == null) {
             throw exception(CHAT_MODEL_NOT_EXISTS);
         }
-        if (sendReqVO.getAppType() == 2) {
+        if (sendReqVO.getAppType() == 1) {
             respVO = difyService.sendChatMessageBlock(sendReqVO);
-        } else if (sendReqVO.getAppType() == 1) {
+        } else if (sendReqVO.getAppType() == 2) {
             respVO = ragflowService.sendChatMessageBlock(sendReqVO);
         }
         return respVO;