resolve can only return one thing at a time
This commit is contained in:
parent
f7576750fc
commit
c1b76b5f48
|
@ -662,7 +662,7 @@ app.post("/generate_textgenerationwebui", jsonParser, async function (request, r
|
|||
websocket.once('error', reject);
|
||||
websocket.once('message', (data, isBinary) => {
|
||||
websocket.removeListener('error', reject);
|
||||
resolve(data, isBinary);
|
||||
resolve(data);
|
||||
});
|
||||
});
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue