From fd03ccdd4fb2d9ab6cca0a0cf1881d690cc9b9e4 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Sat, 10 Aug 2024 07:32:25 +0200 Subject: [PATCH] Only add group member stopping strings on message - Only add group members as stopping strings if generating for a specific group member or user. (Allow slash commands to work around name stopping string restrictions) --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 594324c37..855738d0d 100644 --- a/public/script.js +++ b/public/script.js @@ -2496,8 +2496,8 @@ export function getStoppingStrings(isImpersonate, isContinue) { result.push(charString); } - // Add other group members as the stopping strings - if (selected_group) { + // Add group members as stopping strings if generating for a specific group member or user. (Allow slash commands to work around name stopping string restrictions) + if (selected_group && (name2 || isImpersonate)) { const group = groups.find(x => x.id === selected_group); if (group && Array.isArray(group.members)) {