Update src/systems/integration/sillytavern.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Spicy Marinara
2026-02-25 23:57:24 +01:00
committed by GitHub
parent 733647084a
commit bb202aca9c
+1 -1
View File
@@ -105,7 +105,7 @@ export function commitTrackerData() {
// Find the last assistant message // Find the last assistant message
for (let i = chat.length - 1; i >= 0; i--) { for (let i = chat.length - 1; i >= 0; i--) {
const message = chat[i]; const message = chat[i];
if (!message.is_user) { if (!message.is_user && !message.is_system) {
// Found last assistant message - commit its tracker data // Found last assistant message - commit its tracker data
const swipeId = message.swipe_id || 0; const swipeId = message.swipe_id || 0;
const swipeData = getSwipeData(message, swipeId); const swipeData = getSwipeData(message, swipeId);