From 9cf29b3651794dfdb1f8ae4df041636e7947ae8a Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 24 Jan 2024 00:07:22 +0200 Subject: [PATCH] Breaking - Count scan depth as individual messages, not pairs. --- public/scripts/world-info.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 657eff954..6e28b08ae 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -145,9 +145,6 @@ class WorldInfoBuffer { depth = MAX_SCAN_DEPTH; } - // Legacy compatibility with interpreting scan as pairs. - depth = depth * 2 || 1; - let result = this.#depthBuffer.slice(0, depth).join('\n'); if (this.#recurseBuffer.length > 0) { @@ -1900,7 +1897,7 @@ async function checkWorldInfo(chat, maxContext) { const buffer = new WorldInfoBuffer(chat); // Combine the chat - let minActivationMsgIndex = world_info_depth * 2 || 1; // tracks chat index to satisfy `world_info_min_activations` + let minActivationMsgIndex = world_info_depth; // tracks chat index to satisfy `world_info_min_activations` // Add the depth or AN if enabled // Put this code here since otherwise, the chat reference is modified