mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-01 11:56:48 +01:00
Merge pull request #959 from 50h100a/mancer-streaming
This commit is contained in:
commit
1a29e15fbd
@ -604,7 +604,8 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
|
|||||||
|
|
||||||
websocket.on('open', async function () {
|
websocket.on('open', async function () {
|
||||||
console.log('WebSocket opened');
|
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) => {
|
websocket.on('close', (code, buffer) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user