mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Allow disabling system marker prompts
This commit is contained in:
@ -750,6 +750,11 @@ async function populateChatCompletion(prompts, chatCompletion, { bias, quietProm
|
||||
// We need the prompts array to determine a position for the source.
|
||||
if (false === prompts.has(source)) return;
|
||||
|
||||
if (promptManager.isPromptDisabledForActiveCharacter(source)) {
|
||||
promptManager.log(`Skipping prompt ${source} because it is disabled`);
|
||||
return;
|
||||
}
|
||||
|
||||
const prompt = prompts.get(source);
|
||||
const index = target ? prompts.index(target) : prompts.index(source);
|
||||
const collection = new MessageCollection(source);
|
||||
|
Reference in New Issue
Block a user