diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 182438578..6aad5d92e 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -4125,9 +4125,7 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) { // TODO (kingbri): Change to use WI Anchor positioning instead of separate top/bottom arrays [...allActivatedEntries].sort(sortFn).forEach((entry) => { const regexDepth = entry.position === world_info_position.atDepth ? (entry.depth ?? DEFAULT_DEPTH) : null; - const content = substituteParams( - getRegexedString(entry.content, regex_placement.WORLD_INFO, { depth: regexDepth, isMarkdown: false, isPrompt: true }) - ); + const content = getRegexedString(entry.content, regex_placement.WORLD_INFO, { depth: regexDepth, isMarkdown: false, isPrompt: true }); if (!content) { console.debug(`[WI] Entry ${entry.uid}`, 'skipped adding to prompt due to empty content', entry);