mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 17:36:22 +01:00
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
Block a user