Don't launch generation intercepts on dry runs

This commit is contained in:
Cohee 2023-08-14 11:43:31 +03:00
parent e3d3051183
commit bd9f49d975
1 changed files with 7 additions and 2 deletions

View File

@ -2470,8 +2470,13 @@ 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();
// Always run the extension interceptors. if (!dryRun) {
await runGenerationInterceptors(coreChat, this_max_context); console.debug('Running extension interceptors');
await runGenerationInterceptors(coreChat, this_max_context);
} else {
console.debug('Skipping extension interceptors for dry run');
}
console.log(`Core/all messages: ${coreChat.length}/${chat.length}`); console.log(`Core/all messages: ${coreChat.length}/${chat.length}`);
let storyString = ""; let storyString = "";