| | |
| | | try { |
| | | loading.value = true; |
| | | chatDis.value = true; |
| | | let name = inputMsg.value; |
| | | |
| | | if (val) { |
| | | name = val[0].name.split('.')[0]; |
| | | } |
| | | |
| | | if (!activeSessionId.value) { |
| | | let message = [ |
| | |
| | | const res = await agentConversationSetApi({ |
| | | id: '', |
| | | app_id: agentObj.id, |
| | | name: inputMsg.value, |
| | | name: name, |
| | | message: message, |
| | | }); |
| | | // console.log(res, "res"); |
| | |
| | | const formData = new FormData(); |
| | | uploaditemList.value = resData; |
| | | if (!activeSessionId.value) { |
| | | await createSession(1); |
| | | await createSession(resData); |
| | | } |
| | | |
| | | onFileSelectedLoading.value = true; |