diff --git a/public/script.js b/public/script.js
index 3eeec0ee4..970963cc8 100644
--- a/public/script.js
+++ b/public/script.js
@@ -435,6 +435,7 @@ const system_messages = {
{{char}} - the Character's name
{{time}} - the current time
{{date}} - the current date
+ {{idle_duration}} - the time since the last user message was sent
{{random:(args)}} - 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.
`
]
diff --git a/public/scripts/openai.js b/public/scripts/openai.js
index 800e19dee..d78c8e60f 100644
--- a/public/scripts/openai.js
+++ b/public/scripts/openai.js
@@ -218,7 +218,7 @@ function setOpenAIMessages(chat) {
}
// 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}`;
}