mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#557 Only add user name to chat completion name if it was sent as another persona in the same chat.
This commit is contained in:
@ -211,7 +211,7 @@ function setOpenAIMessages(chat) {
|
||||
}
|
||||
|
||||
// for groups or sendas command - prepend a character's name
|
||||
if (selected_group || chat[j].force_avatar) {
|
||||
if (selected_group || (chat[j].force_avatar && chat[j].name !== name1)) {
|
||||
content = `${chat[j].name}: ${content}`;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user