From 1be05fa51426f1b640569a1a1946ea97f59c283a Mon Sep 17 00:00:00 2001 From: 50h100a Date: Fri, 7 Jul 2023 19:41:57 -0400 Subject: [PATCH] Always run extension interceptors. --- public/script.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/public/script.js b/public/script.js index 84c02c9e8..6cedb4a3e 100644 --- a/public/script.js +++ b/public/script.js @@ -2198,10 +2198,9 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject, // Determine token limit let this_max_context = getMaxContextSize(); - if (extension_settings.chromadb.n_results !== 0) { - await runGenerationInterceptors(coreChat, this_max_context); - console.log(`Core/all messages: ${coreChat.length}/${chat.length}`); - } + // Always run the extension interceptors. + await runGenerationInterceptors(coreChat, this_max_context); + console.log(`Core/all messages: ${coreChat.length}/${chat.length}`); let storyString = "";