mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Restorable poe prompts
This commit is contained in:
@ -730,47 +730,59 @@
|
||||
</div>
|
||||
<div id="poe_settings">
|
||||
<div class="range-block">
|
||||
<div class="range-block-title justifyLeft">
|
||||
Jailbreak activation message
|
||||
<div class="range-block-title justifyLeft poe_restorable">
|
||||
<span>Jailbreak activation message</span>
|
||||
<div id="poe_activation_message_restore" title="Restore default jailbreak" class="right_menu_button">
|
||||
<div class="fa-solid fa-clock-rotate-left"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block-counter justifyLeft">
|
||||
Message to send when auto-jailbreak is on.
|
||||
</div>
|
||||
<div class="wide100p">
|
||||
<textarea id="poe_activation_message" rows="6"></textarea>
|
||||
<textarea id="poe_activation_message" class="text_pole textarea_compact" rows="6"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block">
|
||||
<div class="range-block-title justifyLeft">
|
||||
Jailbreak confirmation reply
|
||||
<div class="range-block-title justifyLeft poe_restorable">
|
||||
<span>Jailbreak confirmation reply</span>
|
||||
<div id="poe_activation_response_restore" title="Restore default reply" class="right_menu_button">
|
||||
<div class="fa-solid fa-clock-rotate-left"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block-counter justifyLeft">
|
||||
Bot must send this back to confirm jailbreak
|
||||
</div>
|
||||
<div class="wide100p">
|
||||
<input id="poe_activation_response" class="text_pole" type="text" />
|
||||
<input id="poe_activation_response" class="text_pole textarea_compact" type="text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block">
|
||||
<div class="range-block-title justifyLeft">
|
||||
Character Note
|
||||
<div class="range-block-title justifyLeft poe_restorable">
|
||||
<span>Character Note</span>
|
||||
<div id="poe_nudge_text_restore" title="Restore default note" class="right_menu_button">
|
||||
<div class="fa-solid fa-clock-rotate-left"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block-counter justifyLeft">
|
||||
Influences bot behavior in its responses.
|
||||
</div>
|
||||
<div class="wide100p">
|
||||
<textarea id="poe_nudge_text" class="text_pole" rows="3" maxlength="250"></textarea>
|
||||
<textarea id="poe_nudge_text" class="text_pole textarea_compact" rows="3" maxlength="250"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block">
|
||||
<div class="range-block-title justifyLeft">
|
||||
Impersonation prompt
|
||||
<div class="range-block-title justifyLeft poe_restorable">
|
||||
<span>Impersonation prompt</span>
|
||||
<div id="poe_impersonation_prompt_restore" title="Restore default prompt" class="right_menu_button">
|
||||
<div class="fa-solid fa-clock-rotate-left"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="range-block-counter justifyLeft">
|
||||
Prompt that is used for Impersonation function
|
||||
</div>
|
||||
<div class="wide100p">
|
||||
<textarea id="poe_impersonation_prompt" class="text_pole" rows="3" maxlength="250"></textarea>
|
||||
<textarea id="poe_impersonation_prompt" class="text_pole textarea_compact" rows="3" maxlength="250"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -308,7 +308,31 @@ function onStreamingInput() {
|
||||
}
|
||||
|
||||
function onImpersonationPromptInput() {
|
||||
poe_settings.impersonation_prompt = !!$(this).prop('checked');
|
||||
poe_settings.impersonation_prompt = $(this).val();
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
||||
function onImpersonationPromptRestoreClick() {
|
||||
poe_settings.impersonation_prompt = DEFAULT_IMPERSONATION_PROMPT;
|
||||
$('#poe_impersonation_prompt').val(poe_settings.impersonation_prompt);
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
||||
function onCharacterNudgeMessageRestoreClick() {
|
||||
poe_settings.character_nudge_message = DEFAULT_CHARACTER_NUDGE_MESSAGE;
|
||||
$('#poe_nudge_text').val(poe_settings.character_nudge_message);
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
||||
function onResponseRestoreClick() {
|
||||
poe_settings.jailbreak_response = DEFAULT_JAILBREAK_RESPONSE;
|
||||
$('#poe_activation_response').val(poe_settings.jailbreak_response);
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
||||
function onMessageRestoreClick() {
|
||||
poe_settings.jailbreak_message = DEFAULT_JAILBREAK_MESSAGE;
|
||||
$('#poe_activation_message').val(poe_settings.jailbreak_message);
|
||||
saveSettingsDebounced();
|
||||
}
|
||||
|
||||
@ -323,4 +347,9 @@ $('document').ready(function () {
|
||||
$('#poe_character_nudge').on('input', onCharacterNudgeInput);
|
||||
$('#poe_nudge_text').on('input', onCharacterNudgeMessageInput);
|
||||
$('#poe_streaming').on('input', onStreamingInput);
|
||||
$('#poe_impersonation_prompt').on('input', onImpersonationPromptInput);
|
||||
$('#poe_impersonation_prompt_restore').on('click', onImpersonationPromptRestoreClick);
|
||||
$('#poe_nudge_text_restore').on('click', onCharacterNudgeMessageRestoreClick);
|
||||
$('#poe_activation_response_restore').on('click', onResponseRestoreClick);
|
||||
$('#poe_activation_message_restore').on('click', onMessageRestoreClick);
|
||||
});
|
@ -3153,7 +3153,7 @@ toolcool-color-picker {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
#poe_activation_message {
|
||||
.textarea_compact {
|
||||
font-size: calc(var(--mainFontSize) * 0.9);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user