mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add buttons to manually jailbreak and purge chat on Poe
This commit is contained in:
@ -2193,7 +2193,12 @@ app.post('/purge_poe', jsonParser, async (request, response) => {
|
||||
|
||||
try {
|
||||
const client = await getPoeClient(token, true);
|
||||
await client.purge_conversation(bot, count);
|
||||
if (count > 0) {
|
||||
await client.purge_conversation(bot, count);
|
||||
}
|
||||
else {
|
||||
await client.send_chat_break(bot);
|
||||
}
|
||||
client.disconnect_ws();
|
||||
|
||||
return response.send({ "ok": true });
|
||||
|
Reference in New Issue
Block a user