localhost -> 127.0.0.1.

Thank you websockets, very cool.
This commit is contained in:
50h100a 2023-08-20 00:30:34 -04:00
parent 386cca0e5d
commit 83eb3449f3
1 changed files with 1 additions and 1 deletions

View File

@ -599,7 +599,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
});
async function* readWebsocket() {
const streamingUrl = request.header('X-Streaming-URL');
const streamingUrl = request.header('X-Streaming-URL').replace("localhost", "127.0.0.1");
const websocket = new WebSocket(streamingUrl);
websocket.on('open', async function () {