|
|
|
@ -324,7 +324,7 @@ const upload = reactive({ |
|
|
|
headers: { Authorization: "Bearer " + getToken() }, |
|
|
|
// 上传的地址 |
|
|
|
url: import.meta.env.VITE_APP_BASE_API + "/aichat/upload", |
|
|
|
data: {"sessionId":Cookies.get("chatSessionId")} |
|
|
|
data: {"sessionId":cache.local.get("chatSessionId")} |
|
|
|
}); |
|
|
|
const isDisabledChart = computed( |
|
|
|
() => !(inputValue.value.trim()) |
|
|
|
@ -345,7 +345,7 @@ function confirmReturn(item,index){ |
|
|
|
chatList.value.splice(index); |
|
|
|
let reqData = { |
|
|
|
"user_id": cache.local.get("username"), |
|
|
|
"session_id": Cookies.get("chatSessionId"), |
|
|
|
"session_id": cache.local.get("chatSessionId"), |
|
|
|
"checkpointer": item.checkpointer |
|
|
|
} |
|
|
|
sendChatMessage(reqData) |
|
|
|
@ -532,7 +532,7 @@ function processAuth(data){ |
|
|
|
updateChatProcessData(updateData).then(res=>{ |
|
|
|
let reqData = { |
|
|
|
"user_id": cache.local.get("username"), |
|
|
|
"session_id": Cookies.get("chatSessionId"), |
|
|
|
"session_id": cache.local.get("chatSessionId"), |
|
|
|
"checkpointer": data.checkpointer, |
|
|
|
"action": data.action, |
|
|
|
"resume": true, |
|
|
|
@ -559,7 +559,7 @@ async function sendChatHandle(event) { |
|
|
|
"type": "question", |
|
|
|
"content": inputValue.value.trim(), |
|
|
|
"time": formatDate(new Date()), |
|
|
|
"sessionId": Cookies.get("chatSessionId"), |
|
|
|
"sessionId": cache.local.get("chatSessionId"), |
|
|
|
"sessionName": chatList.value.length > 0 ? chatList.value[0].content.substring(0, 20) : inputValue.value.trim().substring(0, 20), |
|
|
|
"file": currentFiles.value |
|
|
|
} |
|
|
|
@ -576,7 +576,7 @@ async function sendChatHandle(event) { |
|
|
|
"query": inputValue.value.trim(), |
|
|
|
"user_id": cache.local.get("username"), |
|
|
|
"robot": currentMachine.value.length > 0 ? currentMachine.value[0] : "", |
|
|
|
"session_id": Cookies.get("chatSessionId"), |
|
|
|
"session_id": cache.local.get("chatSessionId"), |
|
|
|
"doc": currentFiles.value |
|
|
|
} |
|
|
|
if (chatList.value.length > 0){ |
|
|
|
@ -644,7 +644,7 @@ function sendChatMessage(data){ |
|
|
|
if (autoRequest){ |
|
|
|
let reqData = { |
|
|
|
"user_id": cache.local.get("username"), |
|
|
|
"session_id": Cookies.get("chatSessionId"), |
|
|
|
"session_id": cache.local.get("chatSessionId"), |
|
|
|
"checkpointer": answer.checkpointer, |
|
|
|
"action":"", |
|
|
|
"resume": true, |
|
|
|
|