src/api/api.js
@@ -1,4 +1,5 @@ import service from "../utils/service.js"; import serviceRag from '../utils/serviceRag.js' export function getAIMessage(params) { //请求地址 // return service.get("/v1/chat?message=" + params); @@ -23,6 +24,10 @@ return service.post("/api/agent/intention2" ,params); } export function getRagAgentIntention(params){ return serviceRag.get("/rag" ,{params:params}); } export function getAgentLayerList(params){ return service.get("/api/agent/layerList" ,{params:params}); }