mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Hotfix
This commit is contained in:
@@ -366,6 +366,9 @@ PromptManagerModule.prototype.sanitizeServiceSettings = function () {
|
|||||||
this.serviceSettings.prompts = [];
|
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())));
|
this.serviceSettings.prompts.forEach((prompt => prompt && (prompt.identifier = prompt.identifier || this.getUuidv4())));
|
||||||
// TODO:
|
// TODO:
|
||||||
// Sanitize data
|
// Sanitize data
|
||||||
|
Reference in New Issue
Block a user