Add button for save and load Custom Template

This commit is contained in:
Petr Mironychev
2024-09-06 09:27:10 +02:00
parent 1e0063a7bb
commit 8e61651bae
2 changed files with 80 additions and 1 deletions

View File

@ -98,6 +98,8 @@ public:
Utils::BoolAspect multiLineCompletion{this};
Utils::StringAspect customJsonTemplate{this};
ButtonAspect saveCustomTemplateButton{this};
ButtonAspect loadCustomTemplateButton{this};
Utils::StringAspect apiKey{this};
ButtonAspect resetToDefaults{this};
@ -109,6 +111,8 @@ private:
void showModelSelectionDialog();
Utils::Environment getEnvironmentWithProviderPaths() const;
void resetSettingsToDefaults();
void saveCustomTemplate();
void loadCustomTemplate();
};
QodeAssistSettings &settings();