mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-02 10:57:45 +01:00
Hotfix
This commit is contained in:
parent
41366b0e72
commit
cb60c31490
@ -369,6 +369,11 @@ PromptManagerModule.prototype.sanitizeServiceSettings = function () {
|
||||
// Check whether the referenced prompts are present.
|
||||
if (0 === this.serviceSettings.prompts.length) this.setPrompts(openAiDefaultPrompts.prompts);
|
||||
|
||||
// Check whether the prompt manager settings are present.
|
||||
if (this.serviceSettings.prompt_manager_settings === undefined) {
|
||||
this.serviceSettings.prompt_manager_settings = Object.assign({}, defaultPromptManagerSettings);
|
||||
}
|
||||
|
||||
this.serviceSettings.prompts.forEach((prompt => prompt && (prompt.identifier = prompt.identifier || this.getUuidv4())));
|
||||
// TODO:
|
||||
// Sanitize data
|
||||
|
Loading…
x
Reference in New Issue
Block a user