readded group nudge to end of prompt (needs proper integration into prompt manager)
This commit is contained in:
parent
3df439a224
commit
6dc8f01ca7
|
@ -747,6 +747,12 @@ function preparePromptsForChatCompletion(Scenario, charPersonality, name2, world
|
||||||
prompts.set(jbReplacement, prompts.index('jailbreak'));
|
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
|
// Allow subscribers to manipulate the prompts object
|
||||||
eventSource.emit(event_types.OAI_BEFORE_CHATCOMPLETION, prompts);
|
eventSource.emit(event_types.OAI_BEFORE_CHATCOMPLETION, prompts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue