remove mode setting
This commit is contained in:
parent
032111994b
commit
3493bccb43
@ -112,22 +112,6 @@ export class InfioSettingTab extends PluginSettingTab {
|
|||||||
});
|
});
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
new Setting(containerEl)
|
|
||||||
.setName('Mode for new chat')
|
|
||||||
.setDesc('Choose the mode to use when starting a new chat.')
|
|
||||||
.addDropdown((dropdown) =>
|
|
||||||
dropdown
|
|
||||||
.addOption('ask', 'Ask')
|
|
||||||
.addOption('write', 'Write')
|
|
||||||
.addOption('research', 'Research')
|
|
||||||
.setValue(this.plugin.settings.mode || 'ask')
|
|
||||||
.onChange(async (value) => {
|
|
||||||
await this.plugin.setSettings({
|
|
||||||
...this.plugin.settings,
|
|
||||||
mode: value as 'ask' | 'write' | 'research',
|
|
||||||
});
|
|
||||||
}),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
renderModelsSection(containerEl: HTMLElement): void {
|
renderModelsSection(containerEl: HTMLElement): void {
|
||||||
|
|||||||
@ -229,7 +229,7 @@ export const InfioSettingsSchema = z.object({
|
|||||||
multiSearchReplaceDiffStrategy: z.boolean().catch(true),
|
multiSearchReplaceDiffStrategy: z.boolean().catch(true),
|
||||||
|
|
||||||
// Mode
|
// Mode
|
||||||
mode: z.enum(['ask', 'write', 'research']).catch('ask'),
|
mode: z.string().catch('ask'),
|
||||||
defaultMention: z.enum(['none', 'current-file', 'vault']).catch('none'),
|
defaultMention: z.enum(['none', 'current-file', 'vault']).catch('none'),
|
||||||
|
|
||||||
// web search
|
// web search
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user