| | |
| | | > |
| | | <div v-if="item.content.errCode === ErrorCode.Message" class="flex-column w-full"> |
| | | <p class="text-red-500"> |
| | | {{ item.content.msg }} |
| | | {{ item.content.errMsg }} |
| | | </p> |
| | | <div class="mt-5 flex items-center" v-if="showFixQuestion(item)"> |
| | | <div class="text-gray-600 flex-0"> |
| | |
| | | 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> |
| | |
| | | } |
| | | content.askMoreList = _.orderBy(res.context_history, [(item) => Number(item.radio)], ['desc']); |
| | | content.errCode = res?.err_code; |
| | | content.msg = res?.json_msg; |
| | | content.errMsg = res?.json_msg; |
| | | content.origin = res; |
| | | return content; |
| | | }; |
| | |
| | | ElMessage.warning('发送失败,未确定应用场景!'); |
| | | } |
| | | processId.value = uuidv4(); |
| | | const judgeParams = !preQuestion.value |
| | | ? {} |
| | | : { |
| | | prev_question: preQuestion.value, |
| | | }; |
| | | const params = { |
| | | process_id: processId.value, |
| | | question: text, |
| | |
| | | section_a_id: currentSectionId, |
| | | history_group_id: currentRouteId, |
| | | raw_mode: roomConfig.value?.[currentRouteId]?.isAnswerByLLM ?? false, |
| | | next_chat: isNextChat.value, |
| | | ...judgeParams, |
| | | } as any; |
| | | |
| | | if (currentSampleId) { |
| | |
| | | feedbackClick, |
| | | askMoreClick, |
| | | fixQuestionClick, |
| | | isNextChat, |
| | | preQuestion, |
| | | showFixQuestion, |
| | | showAskMore, |
| | | } = useAssistantContentOpt({ |