소스 검색

ai业务逻辑修改

yangshun 3 주 전
부모
커밋
50e649a637
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      guoyan-ai/src/main/java/com/cy/guoyan/admin/module/ai/service/aiservice/AiSelectionService.java

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