last-in-context indicator ignores system messages

This commit is contained in:
RossAscends
2023-05-02 22:51:38 +09:00
parent 0dee00570c
commit fa8eb12d43
2 changed files with 2 additions and 2 deletions

View File

@ -1727,7 +1727,7 @@ async function Generate(type, automatic_trigger, force_name2) {
$("#chat").children().removeClass('lastInContext');
console.log(arrMes.length);
$(`#chat .mes:nth-last-child(${arrMes.length})`).addClass('lastInContext');
$(`#chat .mes:nth-last-child(${arrMes.length} of :not([is_system="true"])`).addClass('lastInContext');
break;
}