Skip to content

Commit

Permalink
Refactor settings-tab.ts to include support for custom API provider
Browse files Browse the repository at this point in the history
  • Loading branch information
ckt1031 committed Sep 29, 2024
1 parent ed783c6 commit 0b958dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/settings-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ export class SettingTab extends PluginSettingTab {
});
});

if (settings.advancedSettings || provider === APIProvider.AzureOpenAI) {
if (
settings.advancedSettings ||
provider === APIProvider.AzureOpenAI ||
provider === APIProvider.Custom
) {
new Setting(containerEl)
.setName(`${provider} endpoint base url`)
.setDesc(
Expand Down

0 comments on commit 0b958dd

Please sign in to comment.