groundwork for WebUI-like streaming with mancer
This commit is contained in:
parent
e147ad1e18
commit
8c191c4115
|
@ -604,7 +604,8 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
|
|||
|
||||
websocket.on('open', async function () {
|
||||
console.log('WebSocket opened');
|
||||
websocket.send(JSON.stringify(request.body));
|
||||
const combined_args = Object.assign(request.body.use_mancer ? get_mancer_headers() : {}, request.body);
|
||||
websocket.send(JSON.stringify(combined_args));
|
||||
});
|
||||
|
||||
websocket.on('close', (code, buffer) => {
|
||||
|
|
Loading…
Reference in New Issue