mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add None continue postfix for chat completion
This commit is contained in:
@ -191,6 +191,7 @@ const character_names_behavior = {
|
||||
};
|
||||
|
||||
const continue_postfix_types = {
|
||||
NONE: '',
|
||||
SPACE: ' ',
|
||||
NEWLINE: '\n',
|
||||
DOUBLE_NEWLINE: '\n\n',
|
||||
@ -3138,6 +3139,9 @@ function setNamesBehaviorControls() {
|
||||
|
||||
function setContinuePostfixControls() {
|
||||
switch (oai_settings.continue_postfix) {
|
||||
case continue_postfix_types.NONE:
|
||||
$('#continue_postfix_none').prop('checked', true);
|
||||
break;
|
||||
case continue_postfix_types.SPACE:
|
||||
$('#continue_postfix_space').prop('checked', true);
|
||||
break;
|
||||
@ -5078,6 +5082,12 @@ $(document).ready(async function () {
|
||||
saveSettingsDebounced();
|
||||
});
|
||||
|
||||
$('#continue_postfix_none').on('input', function () {
|
||||
oai_settings.continue_postfix = continue_postfix_types.NONE;
|
||||
setContinuePostfixControls();
|
||||
saveSettingsDebounced();
|
||||
});
|
||||
|
||||
$('#continue_postfix_space').on('input', function () {
|
||||
oai_settings.continue_postfix = continue_postfix_types.SPACE;
|
||||
setContinuePostfixControls();
|
||||
|
Reference in New Issue
Block a user