This commit is contained in:
Cohee
2023-06-07 18:12:47 +03:00
committed by maver
parent f5189df319
commit 41366b0e72

View File

@@ -366,6 +366,9 @@ PromptManagerModule.prototype.sanitizeServiceSettings = function () {
this.serviceSettings.prompts = [];
}
// Check whether the referenced prompts are present.
if (0 === this.serviceSettings.prompts.length) this.setPrompts(openAiDefaultPrompts.prompts);
this.serviceSettings.prompts.forEach((prompt => prompt && (prompt.identifier = prompt.identifier || this.getUuidv4())));
// TODO:
// Sanitize data