This commit is contained in:
Cohee
2023-06-07 18:20:11 +03:00
committed by maver
parent cb60c31490
commit 0f412faabe

View File

@ -366,6 +366,10 @@ PromptManagerModule.prototype.sanitizeServiceSettings = function () {
this.serviceSettings.prompts = []; this.serviceSettings.prompts = [];
} }
if (this.serviceSettings.prompt_lists === undefined) {
this.serviceSettings.prompt_lists = [];
}
// Check whether the referenced prompts are present. // Check whether the referenced prompts are present.
if (0 === this.serviceSettings.prompts.length) this.setPrompts(openAiDefaultPrompts.prompts); if (0 === this.serviceSettings.prompts.length) this.setPrompts(openAiDefaultPrompts.prompts);