Skip to content

Commit

Permalink
nomic-ai#2024 Update ModelSettings.qml to default model/char settings…
Browse files Browse the repository at this point in the history
… combobox to the currently selected chat model

Signed-off-by: chrisbarrera <[email protected]>
  • Loading branch information
chrisbarrera authored and manyoso committed Mar 10, 2024
1 parent 59f99b7 commit 61d6765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gpt4all-chat/qml/ModelSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import QtQuick.Controls.Basic
import QtQuick.Layouts
import modellist
import mysettings
import chatlistmodel

MySettingsTab {
onRestoreDefaultsClicked: {
Expand Down Expand Up @@ -42,7 +43,7 @@ MySettingsTab {
model: ModelList.installedModels
valueRole: "id"
textRole: "name"
currentIndex: 0
currentIndex: comboBox.indexOfValue(ChatListModel.currentChat.modelInfo.id)
contentItem: Text {
leftPadding: 10
rightPadding: 20
Expand Down

0 comments on commit 61d6765

Please sign in to comment.