Allow running generate interceptors on quiet prompts

This commit is contained in:
Cohee
2025-01-03 01:10:14 +02:00
parent 68437ed81c
commit 2f5f9a437d
4 changed files with 22 additions and 7 deletions

View File

@ -3764,9 +3764,9 @@ export async function Generate(type, { automatic_trigger, force_name2, quiet_pro
// Determine token limit
let this_max_context = getMaxContextSize();
if (!dryRun && type !== 'quiet') {
if (!dryRun) {
console.debug('Running extension interceptors');
const aborted = await runGenerationInterceptors(coreChat, this_max_context);
const aborted = await runGenerationInterceptors(coreChat, this_max_context, type);
if (aborted) {
console.debug('Generation aborted by extension interceptors');