wujingjing
2024-07-26 2530b07fb47856bebd1854af2b752938bd9f1c7d
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({