Remove obsolete default settings in prompt manager constructor
This commit is contained in:
parent
a041230a99
commit
f395c99a5d
|
@ -83,7 +83,6 @@ function PromptManagerModule() {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.serviceSettings = null;
|
this.serviceSettings = null;
|
||||||
this.defaultServiceSettings = null;
|
|
||||||
this.containerElement = null;
|
this.containerElement = null;
|
||||||
this.listElement = null;
|
this.listElement = null;
|
||||||
this.activeCharacter = null;
|
this.activeCharacter = null;
|
||||||
|
@ -110,10 +109,9 @@ function PromptManagerModule() {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSettings, defaultServiceSettings = []) {
|
PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSettings) {
|
||||||
this.configuration = Object.assign(this.configuration, moduleConfiguration);
|
this.configuration = Object.assign(this.configuration, moduleConfiguration);
|
||||||
this.serviceSettings = serviceSettings;
|
this.serviceSettings = serviceSettings;
|
||||||
this.defaultServiceSettings = defaultServiceSettings;
|
|
||||||
this.containerElement = document.getElementById(this.configuration.containerIdentifier);
|
this.containerElement = document.getElementById(this.configuration.containerIdentifier);
|
||||||
|
|
||||||
this.sanitizeServiceSettings();
|
this.sanitizeServiceSettings();
|
||||||
|
|
|
@ -279,7 +279,7 @@ function setupOpenAIPromptManager(settings) {
|
||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
}
|
}
|
||||||
|
|
||||||
promptManager.init(configuration, settings, default_settings);
|
promptManager.init(configuration, settings);
|
||||||
promptManager.render();
|
promptManager.render();
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue