mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
Fix API provider dropdown options to use correct values for Gemini and OpenAI
This commit is contained in:
parent
370c5d54bb
commit
ed5f90b8e3
1 changed files with 2 additions and 2 deletions
4
main.ts
4
main.ts
|
|
@ -180,8 +180,8 @@ class AIAgentSettingTab extends PluginSettingTab {
|
|||
.setDesc("Select the API provider to use.")
|
||||
.addDropdown((dropdown) =>
|
||||
dropdown
|
||||
.addOption("1", AIProvider.Gemini)
|
||||
.addOption("2", AIProvider.OpenAI)
|
||||
.addOption(AIProvider.Gemini, AIProvider.Gemini)
|
||||
.addOption(AIProvider.OpenAI, AIProvider.OpenAI)
|
||||
.setValue(this.plugin.settings.apiProvider)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.apiProvider = value;
|
||||
|
|
|
|||
Loading…
Reference in a new issue