Skip to content

Commit

Permalink
Update settings tab
Browse files Browse the repository at this point in the history
  • Loading branch information
jmilldotdev committed Jan 27, 2022
1 parent 11195d7 commit 51ad9f2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions SettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ class GPTSettingTab extends PluginSettingTab {

containerEl.createEl("h3", { text: "API Keys" });

new Setting(containerEl)
.setName("OpenAI API Key")
.setDesc("Enter your OpenAI API Key")
.addText((text) =>
text
.setPlaceholder("API Key")
.setValue(this.plugin.settings.gpt3ApiKey)
.onChange(async (value) => {
this.plugin.settings.gpt3ApiKey = value;
await this.plugin.saveSettings();
})
);

new Setting(containerEl)
.setName("Exafunction API Key")
.setDesc("Enter your Exafunction API Key")
Expand Down

0 comments on commit 51ad9f2

Please sign in to comment.