Breaking - Count scan depth as individual messages, not pairs.

This commit is contained in:
Cohee 2024-01-24 00:07:22 +02:00
parent 8a69f63044
commit 9cf29b3651
1 changed files with 1 additions and 4 deletions

View File

@ -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