Fix default prompts not being set correctly

This commit is contained in:
maver
2023-06-03 21:49:18 +02:00
parent 9022d9abd9
commit 720c9973ec
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
/**