1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

fixes to retrying

This commit is contained in:
Laura
2025-10-03 01:44:48 +02:00
parent ae573b1c51
commit ca1e1c3eef

View File

@@ -420,6 +420,8 @@
return;
}
abortNow();
this.stopEdit();
while (messages.length > index) {
@@ -1073,6 +1075,10 @@
let chatController;
function abortNow() {
chatController?.abort();
}
function generate(cancel = false, noPush = false) {
if (chatController) {
chatController.abort();
@@ -1500,6 +1506,8 @@
}
function clearMessages() {
abortNow();
while (messages.length) {
messages[0].delete();
}