mirror of
https://github.com/yzh503/obsidian-aicommander-plugin.git
synced 2026-07-22 07:40:26 +00:00
Support any model in settings.
This commit is contained in:
parent
7a5f9c14a4
commit
64b6f35f55
1 changed files with 5 additions and 5 deletions
10
src/main.ts
10
src/main.ts
|
|
@ -91,7 +91,7 @@ export default class AICommanderPlugin extends Plugin {
|
||||||
});
|
});
|
||||||
|
|
||||||
const body = JSON.stringify({
|
const body = JSON.stringify({
|
||||||
model: 'gpt-3.5-turbo',
|
model: this.settings.model,
|
||||||
messages: messages,
|
messages: messages,
|
||||||
stream: true
|
stream: true
|
||||||
});
|
});
|
||||||
|
|
@ -660,10 +660,10 @@ class ApiSettingTab extends PluginSettingTab {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
new Setting(containerEl)
|
new Setting(containerEl)
|
||||||
.setName('Text Model')
|
.setName('Model')
|
||||||
.setDesc('Select the model to use for text generation')
|
.setDesc('Select the model to use for content generation')
|
||||||
.addDropdown(dropdown => dropdown
|
.addText(text => text
|
||||||
.addOption('gpt-3.5-turbo', 'gpt-3.5-turbo')
|
.setPlaceholder('gpt-3.5-turbo')
|
||||||
.setValue(this.plugin.settings.model)
|
.setValue(this.plugin.settings.model)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
this.plugin.settings.model = value;
|
this.plugin.settings.model = value;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue