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
let this_max_context = getMaxContextSize();
// Always run the extension interceptors.
await runGenerationInterceptors(coreChat, this_max_context);
if (!dryRun) {
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}`);
let storyString = "";