#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:
Cohee
2023-06-23 23:05:41 +03:00
parent 23287597ee
commit e78abf9269

View File

@ -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}`;
}