mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Remove the memory attached to right swipe
This commit is contained in:
@ -3499,6 +3499,10 @@ $(document).ready(function () {
|
||||
chat[chat.length - 1]['swipes'][0] = chat[chat.length - 1]['mes']; //assign swipe array with last message from chat
|
||||
}
|
||||
chat[chat.length - 1]['swipe_id']++; //make new slot in array
|
||||
// if message has memory attached - remove it to allow regen
|
||||
if (chat[chat.length -1].extra && chat[chat.length -1].extra.memory) {
|
||||
delete chat[chat.length -1].extra.memory;
|
||||
}
|
||||
//console.log(chat[chat.length-1]['swipes']);
|
||||
if (parseInt(chat[chat.length - 1]['swipe_id']) === chat[chat.length - 1]['swipes'].length) { //if swipe id of last message is the same as the length of the 'swipes' array
|
||||
|
||||
|
Reference in New Issue
Block a user