|
|
@ -34,7 +34,7 @@ const sessionId = ref(localStorage.getItem('sessionId') || {}); |
|
|
|
const add = async () => { |
|
|
|
try { |
|
|
|
const result = await axios.post( |
|
|
|
"http://c6bi3f.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", |
|
|
|
"http://2zhyw2.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", |
|
|
|
{}, |
|
|
|
{ |
|
|
|
headers: { |
|
|
@ -132,7 +132,7 @@ const sendMessage = async () => { |
|
|
|
|
|
|
|
try { |
|
|
|
// 调用API获取回复 |
|
|
|
const response = await fetch("http://c6bi3f.natappfree.cc/api/v1/chats/8b37cd9cf0c811efa4210242ac120003/completions", { |
|
|
|
const response = await fetch("http://2zhyw2.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 }) |
|
|
|