From 2530b07fb47856bebd1854af2b752938bd9f1c7d Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期五, 26 七月 2024 09:43:15 +0800 Subject: [PATCH] 修复已知问题 --- src/components/chat/Chat.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index b7c1684..ff508e8 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -36,7 +36,7 @@ v-for="fixItem in item.content.origin.err_json.fix_question?.values" :key="fixItem" class="bg-gray-200 p-3 hover:bg-[#c5e0ff] hover:text-[#1c86ff] cursor-pointer rounded-lg" - @click="fixQuestionClick(fixItem)" + @click="fixQuestionClick(fixItem, item.content.origin)" > {{ fixItem.title }} </div> @@ -237,6 +237,11 @@ ElMessage.warning('鍙戦�佸け璐ワ紝鏈‘瀹氬簲鐢ㄥ満鏅紒'); } processId.value = uuidv4(); + const judgeParams = !preQuestion.value + ? {} + : { + prev_question: preQuestion.value, + }; const params = { process_id: processId.value, question: text, @@ -244,7 +249,7 @@ section_a_id: currentSectionId, history_group_id: currentRouteId, raw_mode: roomConfig.value?.[currentRouteId]?.isAnswerByLLM ?? false, - next_chat: isNextChat.value, + ...judgeParams, } as any; if (currentSampleId) { @@ -404,7 +409,7 @@ feedbackClick, askMoreClick, fixQuestionClick, - isNextChat, + preQuestion, showFixQuestion, showAskMore, } = useAssistantContentOpt({ -- Gitblit v1.9.3