mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add prompt injection filters
This commit is contained in:
@@ -3721,7 +3721,7 @@ export async function checkWorldInfo(chat, maxContext, isDryRun) {
|
||||
// Put this code here since otherwise, the chat reference is modified
|
||||
for (const key of Object.keys(context.extensionPrompts)) {
|
||||
if (context.extensionPrompts[key]?.scan) {
|
||||
const prompt = getExtensionPromptByName(key);
|
||||
const prompt = await getExtensionPromptByName(key);
|
||||
if (prompt) {
|
||||
buffer.addInject(prompt);
|
||||
}
|
||||
|
Reference in New Issue
Block a user