|
|
@@ -628,7 +628,6 @@ const handleEditChat = (item) => {
|
|
|
const retry_action_option = ref(null);
|
|
|
const handleActionConfigChange = (config) => {
|
|
|
retry_action_option.value = config;
|
|
|
- console.log(retry_action_option.value);
|
|
|
};
|
|
|
/**
|
|
|
* 重新生成
|
|
|
@@ -658,46 +657,7 @@ const handleRetryChat = async (item) => {
|
|
|
chatMode
|
|
|
}
|
|
|
};
|
|
|
- console.log(options);
|
|
|
toSubmitNewChat(options);
|
|
|
-
|
|
|
- // const question_item = chat_display_list.value[question_idx - 1];
|
|
|
- // console.log(question_item, 11);
|
|
|
-
|
|
|
- // //查看是否携带文件或知识库参数
|
|
|
- // const ask_text = question_item.question;
|
|
|
- // const ask_files = question_item.client_custom_upload_file_list;
|
|
|
- // const knowledgeIdList = question_item.client_custom_knowledge_id;
|
|
|
- // const client_question = formatDialogQuestionByClient(ask_text, ask_files, knowledgeIdList);
|
|
|
- // chat_new_question.value = client_question;
|
|
|
- // // 消息即将发送,记录用户的提问数据
|
|
|
- // chat_new_list.value.push(chat_new_question.value);
|
|
|
- // // 客户端答案数据(loading状态),客户端模拟的答案数据,依据此数据展示加载中的动画
|
|
|
- // const answerLoadingMsg = formatDialogAnswerForLoading(props.CHAT_AGENT_INFOMATION);
|
|
|
- // chat_new_list.value.push(answerLoadingMsg);
|
|
|
- // inputClearFn1();
|
|
|
- // inputClearFn2();
|
|
|
- // // 清空可能存在的推荐项目
|
|
|
- // chat_suggestion.value = [];
|
|
|
- // // 清空已保存的提问数据(提问数据已经推入数组,此处无需继续保存)
|
|
|
- // chat_new_question.value = null;
|
|
|
- // // 文件上传、文本输入区域禁用
|
|
|
- // input_disabled.value = true;
|
|
|
- // // 对话区域滚动到底部
|
|
|
- // scroll2ListBottom();
|
|
|
- // // 组合参数
|
|
|
- // // if()
|
|
|
- // const query_params = {
|
|
|
- // query: ask_text,
|
|
|
- // files: ask_files,
|
|
|
- // session_id: props.session_id || '',
|
|
|
- // knowledgeId: knowledgeIdList,
|
|
|
- // chatMode: action_config.chatMode,
|
|
|
- // isDeep: action_config.isDeep,
|
|
|
- // parentId: parent_id
|
|
|
- // };
|
|
|
- // startStream(query_params, sseOnMessage);
|
|
|
- // return;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -1220,7 +1180,6 @@ const handleInputSubmit = async (options) => {
|
|
|
};
|
|
|
// 首页对话
|
|
|
const toSubmitNewChat = async (options) => {
|
|
|
- console.log(options, 111);
|
|
|
let ask_text = options.text; // 文本
|
|
|
const ask_files = options.files; // 文件列表
|
|
|
const action_config = options.config; //是否深度思考,是否联网,是否选择知识库
|
|
|
@@ -1351,13 +1310,6 @@ const sseOnMessage = (ev) => {
|
|
|
mindMap_str.value = res.data.mindmap;
|
|
|
mindMap_content.value = res.data.mindmap;
|
|
|
mindMap_err.value = '';
|
|
|
- // const last_msg = chat_new_list.value[chat_new_list.value.length - 1];
|
|
|
- // last_msg.client_custom_item_mind_map = res.data.mindmap;
|
|
|
- // chat_display_list.value.value.forEach(item => {
|
|
|
- // if(item.client_custom_chat_message_id === min)
|
|
|
- // });
|
|
|
- // chat_display_list.value.push(last_msg);
|
|
|
- // console.log(chat_display_list.value, 111);
|
|
|
if (!res.data.mindmap) {
|
|
|
mindMap_err.value = '文本内容太少,不足以生成思维导图,请重新尝试';
|
|
|
}
|
|
|
@@ -1509,7 +1461,6 @@ watch(
|
|
|
const res_data = res.data;
|
|
|
// 成功
|
|
|
const session_list = res_data.message;
|
|
|
- console.log(session_list, 'xxxxx');
|
|
|
for (let key in session_list) {
|
|
|
if (session_list[key].role == 'assistant') {
|
|
|
const res = await getHistoryMapData(session_list[key].id);
|
|
|
@@ -1563,7 +1514,6 @@ watch(
|
|
|
);
|
|
|
const getHistoryMapData = async (message_id) => {
|
|
|
const res = await getMapById(message_id);
|
|
|
- console.log(res);
|
|
|
return res;
|
|
|
};
|
|
|
|