Always run extension interceptors.

This commit is contained in:
50h100a
2023-07-07 19:41:57 -04:00
parent cd7df3e0e7
commit 1be05fa514

View File

@@ -2198,10 +2198,9 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
// Determine token limit // Determine token limit
let this_max_context = getMaxContextSize(); let this_max_context = getMaxContextSize();
if (extension_settings.chromadb.n_results !== 0) { // Always run the extension interceptors.
await runGenerationInterceptors(coreChat, this_max_context); await runGenerationInterceptors(coreChat, this_max_context);
console.log(`Core/all messages: ${coreChat.length}/${chat.length}`); console.log(`Core/all messages: ${coreChat.length}/${chat.length}`);
}
let storyString = ""; let storyString = "";