mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Split Custom OAI prompt post-processing modes
This commit is contained in:
@ -199,7 +199,10 @@ const continue_postfix_types = {
|
||||
|
||||
const custom_prompt_post_processing_types = {
|
||||
NONE: '',
|
||||
/** @deprecated Use MERGE instead. */
|
||||
CLAUDE: 'claude',
|
||||
MERGE: 'merge',
|
||||
STRICT: 'strict',
|
||||
};
|
||||
|
||||
const sensitiveFields = [
|
||||
@ -3043,6 +3046,10 @@ function loadOpenAISettings(data, settings) {
|
||||
setNamesBehaviorControls();
|
||||
setContinuePostfixControls();
|
||||
|
||||
if (oai_settings.custom_prompt_post_processing === custom_prompt_post_processing_types.CLAUDE) {
|
||||
oai_settings.custom_prompt_post_processing = custom_prompt_post_processing_types.MERGE;
|
||||
}
|
||||
|
||||
$('#chat_completion_source').val(oai_settings.chat_completion_source).trigger('change');
|
||||
$('#oai_max_context_unlocked').prop('checked', oai_settings.max_context_unlocked);
|
||||
$('#custom_prompt_post_processing').val(oai_settings.custom_prompt_post_processing);
|
||||
|
Reference in New Issue
Block a user