Fix default prompts not being set correctly
This commit is contained in:
parent
9022d9abd9
commit
720c9973ec
|
@ -411,7 +411,7 @@ PromptManagerModule.prototype.handleCharacterSelected = function (event) {
|
|||
// Set default prompts and order for character.
|
||||
if (0 === promptList.length) this.addPromptListForCharacter(this.activeCharacter, openAiDefaultPromptList)
|
||||
// Check whether the referenced prompts are present.
|
||||
if (0 === this.serviceSettings.prompts.length) this.setPrompts(openAiDefaultPrompts);
|
||||
if (0 === this.serviceSettings.prompts.length) this.setPrompts(openAiDefaultPrompts.prompts);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1140,9 +1140,9 @@ function loadOpenAISettings(data, settings) {
|
|||
oai_settings.proxy_password = settings.proxy_password ?? default_settings.proxy_password;
|
||||
oai_settings.assistant_prefill = settings.assistant_prefill ?? default_settings.assistant_prefill;
|
||||
|
||||
oai_settings.prompts = settings.prompts ?? []
|
||||
oai_settings.prompt_lists = settings.prompt_lists ?? [];
|
||||
oai_settings.prompt_manager_settings = settings.prompt_manager_settings ?? [];
|
||||
oai_settings.prompts = settings.prompts ?? default_settings.prompts;
|
||||
oai_settings.prompt_lists = settings.prompt_lists ?? default_settings.prompt_lists;
|
||||
oai_settings.prompt_manager_settings = settings.prompt_manager_settings ?? default_settings.prompt_manager_settings;
|
||||
|
||||
if (settings.nsfw_toggle !== undefined) oai_settings.nsfw_toggle = !!settings.nsfw_toggle;
|
||||
if (settings.keep_example_dialogue !== undefined) oai_settings.keep_example_dialogue = !!settings.keep_example_dialogue;
|
||||
|
|
Loading…
Reference in New Issue