|
@@ -66,7 +66,7 @@ export default {
|
|
|
);
|
|
|
},
|
|
|
connectWebSocket() {
|
|
|
- const wsUrl = this.wsUrl//'http://58.246.234.210:7860/api/v1/run/951e3ba4-c66a-496c-9497-7dbddc2647f8?stream=false'
|
|
|
+ const wsUrl = 'http://58.246.234.210:7860/api/v1/run/2f1faff2-99df-4821-87d6-43d693084c4b?stream=false'
|
|
|
// 这里做一个简单的鉴权,只有符合条件的鉴权才能握手成功
|
|
|
// 移除这里的fetch调用,改用WebSocket
|
|
|
this.websocket = new WebSocket(wsUrl);
|
|
@@ -119,7 +119,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
const chatId = this.getUuid();
|
|
|
- const wsUrl =this.wsUrl//'http://58.246.234.210:7860/api/v1/run/951e3ba4-c66a-496c-9497-7dbddc2647f8?stream=false'
|
|
|
+ const wsUrl ='http://58.246.234.210:7860/api/v1/run/2f1faff2-99df-4821-87d6-43d693084c4b?stream=false'
|
|
|
let message = this.userInput.trim();
|
|
|
if (message) {
|
|
|
// Markdown换行:在每个换行符之前添加两个空格
|