mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-31 11:35:37 +01:00
Fix SD character-prefixed free-mode user detection
This commit is contained in:
parent
008ac9d47e
commit
8aa1814287
@ -1758,7 +1758,7 @@ function generateFreeCharacterPrompt(trigger) {
|
||||
}
|
||||
for (let i = context.chat.length - 1; i >= 0; i--) {
|
||||
const message = context.chat[i];
|
||||
if (context.is_user || message.is_system) {
|
||||
if (message.is_user || message.is_system) {
|
||||
continue;
|
||||
} else if (typeof message.original_avatar === 'string') {
|
||||
return message.original_avatar.replace(/\.[^/.]+$/, '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user