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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user