Move poe API to main block

This commit is contained in:
SillyLossy
2023-04-04 16:04:27 +03:00
parent 2ab42f40f7
commit ddb7eee3fb
10 changed files with 335 additions and 331 deletions

View File

@ -1678,6 +1678,8 @@ app.post('/generate_poe', jsonParser, async (request, response) => {
for await (const mes of client.send_message(bot, prompt)) {
reply = mes.text;
}
console.log(reply);
client.disconnect_ws();