From 6dc8f01ca70a4f2290f3fbf1b70f3aa439e5d0fa Mon Sep 17 00:00:00 2001 From: based Date: Sun, 20 Aug 2023 03:50:51 +1000 Subject: [PATCH] readded group nudge to end of prompt (needs proper integration into prompt manager) --- public/scripts/openai.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 7720ff94c..197b74f7e 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -747,6 +747,12 @@ function preparePromptsForChatCompletion(Scenario, charPersonality, name2, world prompts.set(jbReplacement, prompts.index('jailbreak')); } + // TODO: Integrate Group nudge into the prompt manager properly + if(selected_group) { + let group_nudge = {"role": "system", "content": `[Write the next reply only as ${name2}]`}; + openai_msgs.push(group_nudge); + } + // Allow subscribers to manipulate the prompts object eventSource.emit(event_types.OAI_BEFORE_CHATCOMPLETION, prompts);