diff --git a/src/api/AiEmotionApi.js b/src/api/AiEmotionApi.js index 15c0244..4268387 100644 --- a/src/api/AiEmotionApi.js +++ b/src/api/AiEmotionApi.js @@ -3,29 +3,13 @@ import request from "../utils/request"; const APIurl = import.meta.env.VITE_APP_API_BASE_URL; const MJAPIurl = import.meta.env.VITE_APP_MJ_API_BASE_URL; -//数据接口 -export const dataListAPI = function (params) { - // URLSearchParams只接受全部字符串的数据 - // 将传入数据转化成字符串 - const StringParams = new URLSearchParams( - Object.entries(params).map(([key, value]) => [key, String(value)]) - ); - return request({ - url: `${APIurl}/api/brain/data`, - method: "post", - data: StringParams, - headers: { - "Content-Type": "application/x-www-form-urlencoded", - }, - }); -}; -// 获取回复接口 +// 工作流获取用户意图接口 export const getReplyAPI = function (params) { return fetch("https://api.coze.cn/v1/workflow/run", { method: "POST", body: JSON.stringify({ - workflow_id: "7509384582975897650", + workflow_id: "7512677411467001910", parameters: params, }), headers: { @@ -35,12 +19,13 @@ export const getReplyAPI = function (params) { }, }); }; -// 获取回复接口流式 -export const getReplyStreamAPI = function (params) { - return fetch(`https://api.coze.cn/v1/workflow/stream_run`, { + +// 获取第二个工作流给出的结论 +export const getConclusion = function (params) { + return fetch("https://api.coze.cn/v1/workflow/run", { method: "POST", body: JSON.stringify({ - workflow_id: "7481159261435854860", + workflow_id: "7509384582975897650", parameters: params, }), headers: { @@ -50,27 +35,3 @@ export const getReplyStreamAPI = function (params) { }, }); }; - - -// 反馈前台-用户提交反馈接口 -export const addFeedbackAPI = function (params) { - return request({ - url: `${APIurl}/api/ai_god/feedback/add`, - method: "POST", - data: new URLSearchParams(params), - headers: { - "Content-Type": "application/x-www-form-urlencoded", - }, - }); -}; -// 反馈前台-查询该用户提交的全部反馈内容 -export const getFeedbackAPI = function (params) { - return request({ - url: `${APIurl}/api/ai_god/feedback/select`, - method: "POST", - data: new URLSearchParams(params), - headers: { - "Content-Type": "application/x-www-form-urlencoded", - }, - }); -}; diff --git a/src/assets/img/AiEmotion/L1.png b/src/assets/img/AiEmotion/L1.png new file mode 100644 index 0000000..2173556 Binary files /dev/null and b/src/assets/img/AiEmotion/L1.png differ diff --git a/src/assets/img/AiEmotion/L2.png b/src/assets/img/AiEmotion/L2.png new file mode 100644 index 0000000..ee32052 Binary files /dev/null and b/src/assets/img/AiEmotion/L2.png differ diff --git a/src/assets/img/AiEmotion/L3.png b/src/assets/img/AiEmotion/L3.png new file mode 100644 index 0000000..16b58bd Binary files /dev/null and b/src/assets/img/AiEmotion/L3.png differ diff --git a/src/assets/img/AiEmotion/L4.png b/src/assets/img/AiEmotion/L4.png new file mode 100644 index 0000000..2c31b4a Binary files /dev/null and b/src/assets/img/AiEmotion/L4.png differ diff --git a/src/assets/img/AiEmotion/bk01.png b/src/assets/img/AiEmotion/bk01.png new file mode 100644 index 0000000..9d881b2 Binary files /dev/null and b/src/assets/img/AiEmotion/bk01.png differ diff --git a/src/assets/img/AiEmotion/bk02.png b/src/assets/img/AiEmotion/bk02.png new file mode 100644 index 0000000..b4c457b Binary files /dev/null and b/src/assets/img/AiEmotion/bk02.png differ diff --git a/src/assets/img/AiEmotion/bk03.png b/src/assets/img/AiEmotion/bk03.png new file mode 100644 index 0000000..1bf136b Binary files /dev/null and b/src/assets/img/AiEmotion/bk03.png differ diff --git a/src/assets/img/AiEmotion/tree.png b/src/assets/img/AiEmotion/tree.png new file mode 100644 index 0000000..25bc820 Binary files /dev/null and b/src/assets/img/AiEmotion/tree.png differ diff --git a/src/assets/img/AiEmotion/探底雷达.png b/src/assets/img/AiEmotion/探底雷达.png new file mode 100644 index 0000000..8167b24 Binary files /dev/null and b/src/assets/img/AiEmotion/探底雷达.png differ diff --git a/src/assets/img/AiEmotion/温度计.png b/src/assets/img/AiEmotion/温度计.png new file mode 100644 index 0000000..bf77404 Binary files /dev/null and b/src/assets/img/AiEmotion/温度计.png differ diff --git a/src/assets/img/AiEmotion/能量转化器.png b/src/assets/img/AiEmotion/能量转化器.png new file mode 100644 index 0000000..0f34f91 Binary files /dev/null and b/src/assets/img/AiEmotion/能量转化器.png differ diff --git a/src/assets/img/AiEmotion/量子神经决策树.png b/src/assets/img/AiEmotion/量子神经决策树.png new file mode 100644 index 0000000..0995047 Binary files /dev/null and b/src/assets/img/AiEmotion/量子神经决策树.png differ diff --git a/src/assets/img/AiEmotion/金轮.png b/src/assets/img/AiEmotion/金轮.png new file mode 100644 index 0000000..760b21a Binary files /dev/null and b/src/assets/img/AiEmotion/金轮.png differ diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 104e968..6163eaa 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -1,10 +1,6 @@ - - - - + @@ -13,10 +9,7 @@ - - - {{ message.response }} - + {{ message.text }} @@ -27,100 +20,298 @@ 发送 + + + + + + 房间卡方法啊付了款公交卡阿济格 + 2025/06/07 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +