Merge pull request #2636 from SillyTavern/stopping-strings-group-members

Group members as stopping strings only added if generating for a specific member or impersonating
This commit is contained in:
Cohee 2024-08-10 23:58:58 +03:00 committed by GitHub
commit ed99e41985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2496,8 +2496,8 @@ export function getStoppingStrings(isImpersonate, isContinue) {
result.push(charString); result.push(charString);
} }
// Add other group members as the stopping strings // 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) { if (selected_group && (name2 || isImpersonate)) {
const group = groups.find(x => x.id === selected_group); const group = groups.find(x => x.id === selected_group);
if (group && Array.isArray(group.members)) { if (group && Array.isArray(group.members)) {