mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't append System narrator name to Chat completion messages.
This commit is contained in:
@@ -435,6 +435,7 @@ const system_messages = {
|
|||||||
<li><tt>{{char}}</tt> - the Character's name</li>
|
<li><tt>{{char}}</tt> - the Character's name</li>
|
||||||
<li><tt>{{time}}</tt> - the current time</li>
|
<li><tt>{{time}}</tt> - the current time</li>
|
||||||
<li><tt>{{date}}</tt> - the current date</li>
|
<li><tt>{{date}}</tt> - the current date</li>
|
||||||
|
<li><tt>{{idle_duration}}</tt> - the time since the last user message was sent</li>
|
||||||
<li><tt>{{random:(args)}}</tt> - returns a random item from the list. (ex: {{random:1,2,3,4}} will return 1 of the 4 numbers at random. Works with text lists too.</li>
|
<li><tt>{{random:(args)}}</tt> - returns a random item from the list. (ex: {{random:1,2,3,4}} will return 1 of the 4 numbers at random. Works with text lists too.</li>
|
||||||
</ul>`
|
</ul>`
|
||||||
]
|
]
|
||||||
|
@@ -218,7 +218,7 @@ function setOpenAIMessages(chat) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// for groups or sendas command - prepend a character's name
|
// for groups or sendas command - prepend a character's name
|
||||||
if (selected_group || (chat[j].force_avatar && chat[j].name !== name1)) {
|
if (selected_group || (chat[j].force_avatar && chat[j].name !== name1 && chat[j].extra?.type !== system_message_types.NARRATOR)) {
|
||||||
content = `${chat[j].name}: ${content}`;
|
content = `${chat[j].name}: ${content}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user