Remove doubled initialization of prompt manager
This commit is contained in:
parent
7c1e370abe
commit
9cf41a6a52
|
@ -140,7 +140,7 @@ PromptManagerModule.prototype.init = function (moduleConfiguration, serviceSetti
|
|||
const promptId = event.target.dataset.pmPrompt;
|
||||
const prompt = this.getPromptById(promptId);
|
||||
|
||||
if (null === prompt){
|
||||
if (null === prompt) {
|
||||
this.addPrompt({}, promptId);
|
||||
} else {
|
||||
this.updatePrompt(prompt);
|
||||
|
|
|
@ -2115,7 +2115,6 @@ async function onModelChange() {
|
|||
if ($(this).is('#model_claude_select')) {
|
||||
console.log('Claude model changed to', value);
|
||||
oai_settings.claude_model = value;
|
||||
//setupOpenAIPromptManager(openai_settings);
|
||||
}
|
||||
|
||||
if ($(this).is('#model_windowai_select')) {
|
||||
|
@ -2126,7 +2125,6 @@ async function onModelChange() {
|
|||
if ($(this).is('#model_openai_select')) {
|
||||
console.log('OpenAI model changed to', value);
|
||||
oai_settings.openai_model = value;
|
||||
setupOpenAIPromptManager(openai_settings);
|
||||
}
|
||||
|
||||
if ($(this).is('#model_openrouter_select')) {
|
||||
|
|
Loading…
Reference in New Issue