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