mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't launch generation intercepts on dry runs
This commit is contained in:
@ -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.
|
||||
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 = "";
|
||||
|
Reference in New Issue
Block a user