From 2349eaeb085a16f0a1660153d50dad52d0298249 Mon Sep 17 00:00:00 2001 From: donghaolin <17667510818@163.com> Date: Sun, 23 Feb 2025 09:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/chat.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/chat.vue b/src/views/chat.vue index 5f9ee8f..e1aad40 100644 --- a/src/views/chat.vue +++ b/src/views/chat.vue @@ -34,7 +34,7 @@ const sessionId = ref(localStorage.getItem('sessionId') || {}); const add = async () => { try { const result = await axios.post( - "http://t3zf7v.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", + "http://9zebk6.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", {}, { headers: { @@ -134,12 +134,13 @@ const sendMessage = async () => { try { // 调用API获取回复 - const response = await fetch("http://t3zf7v.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", { + const response = await fetch("http://9zebk6.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", { method: 'POST', headers: { 'Content-Type': 'application/json', Authorization: 'Bearer ragflow-hkNjEwYjcwZjBlMDExZWZiYjYzMDI0Mm' }, body: JSON.stringify({ question: content, stream: false, session_id: sessionId.value }) }) const data = await response.json() + console.log(data, 'data211111'); // 移除加载消息 messages.value = messages.value.filter(msg => !msg.isLoading)