Merge pull request #959 from 50h100a/mancer-streaming

This commit is contained in:
Cohee 2023-08-18 01:58:55 +03:00 committed by GitHub
commit 1a29e15fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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) => {