Skip to content

Commit

Permalink
#3026 fix: model setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed May 15, 2024
1 parent 6d950c3 commit c14d71d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/openaiservice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ bool OpenAiService::setBackendId(const QString& id) {
QSettings settings;
this->_backendId = id;
settings.setValue(QStringLiteral("ai/currentBackend"), id);
// Reset model id, so it needs to be read again
this->_modelId = QString();

return true;
}
Expand All @@ -127,8 +129,6 @@ bool OpenAiService::setModelId(const QString& id) {
}

this->_modelId = id;
// Reset model id, so it needs to be read again
this->_modelId = QString();
QSettings settings;
settings.setValue(getCurrentModelSettingsKey(), id);

Expand Down

0 comments on commit c14d71d

Please sign in to comment.