Skip to content

Commit

Permalink
Actually set the chat name and suggested follow-up question prompts. (#…
Browse files Browse the repository at this point in the history
…2723)

Signed-off-by: Adam Treat <treat.adam@gmail.com>
  • Loading branch information
manyoso authored Jul 24, 2024
1 parent 765e055 commit 0cdd07b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions gpt4all-chat/qml/ModelSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,21 @@ MySettingsTab {
id: chatNamePromptTextArea
anchors.fill: parent
text: root.currentModelInfo.chatNamePrompt
Connections {
target: MySettings
function onChatNamePromptChanged() {
chatNamePromptTextArea.text = root.currentModelInfo.chatNamePrompt;
}
}
Connections {
target: root
function onCurrentModelInfoChanged() {
chatNamePromptTextArea.text = root.currentModelInfo.chatNamePrompt;
}
}
onTextChanged: {
MySettings.setModelChatNamePrompt(root.currentModelInfo, text)
}
Accessible.role: Accessible.EditableText
Accessible.name: chatNamePromptLabel.text
Accessible.description: chatNamePromptLabel.text
Expand Down Expand Up @@ -300,6 +315,21 @@ MySettingsTab {
id: suggestedFollowUpPromptTextArea
anchors.fill: parent
text: root.currentModelInfo.suggestedFollowUpPrompt
Connections {
target: MySettings
function onSuggestedFollowUpPromptChanged() {
suggestedFollowUpPromptTextArea.text = root.currentModelInfo.suggestedFollowUpPrompt;
}
}
Connections {
target: root
function onCurrentModelInfoChanged() {
suggestedFollowUpPromptTextArea.text = root.currentModelInfo.suggestedFollowUpPrompt;
}
}
onTextChanged: {
MySettings.setModelSuggestedFollowUpPrompt(root.currentModelInfo, text)
}
Accessible.role: Accessible.EditableText
Accessible.name: suggestedFollowUpPromptLabel.text
Accessible.description: suggestedFollowUpPromptLabel.text
Expand Down

0 comments on commit 0cdd07b

Please sign in to comment.