Initialize prompt manager on selecting openrouter, scale

This commit is contained in:
maver 2023-07-18 18:33:13 +02:00
parent fc555c1be5
commit ec806db9f7
1 changed files with 6 additions and 3 deletions

View File

@ -4563,15 +4563,18 @@ function changeMainAPI() {
switch (oai_settings.chat_completion_source) {
case chat_completion_sources.OPENAI:
console.log('Setting up OpenAI prompt manager');
setupOpenAIPromptManager(oai_settings);
break;
case chat_completion_sources.CLAUDE:
console.log('Setting up Claude prompt manager');
setupClaudePromptManager(oai_settings);
break;
case chat_completion_sources.WINDOWAI:
console.log('Setting up WindowAI prompt manager');
setupWindowAiPromptManager(oai_settings);
break;
case chat_completion_sources.OPENROUTER:
setupWindowAiPromptManager(oai_settings);
break;
case chat_completion_sources.SCALE:
setupWindowAiPromptManager(oai_settings);
break;
}