| 12 | namespace QodeAssist::Chat { |
| 13 | |
| 14 | ChatConfigurationController::ChatConfigurationController(QObject *parent) |
| 15 | : QObject(parent) |
| 16 | { |
| 17 | auto &settings = Settings::generalSettings(); |
| 18 | connect( |
| 19 | &settings.caProvider, |
| 20 | &Utils::BaseAspect::changed, |
| 21 | this, |
| 22 | &ChatConfigurationController::updateCurrentConfiguration); |
| 23 | connect( |
| 24 | &settings.caModel, |
| 25 | &Utils::BaseAspect::changed, |
| 26 | this, |
| 27 | &ChatConfigurationController::updateCurrentConfiguration); |
| 28 | |
| 29 | loadAvailableConfigurations(); |
| 30 | } |
| 31 | |
| 32 | QStringList ChatConfigurationController::availableConfigurations() const |
| 33 | { |
nothing calls this directly
no outgoing calls
no test coverage detected