fixups for GPT4All v3.5.0-rc2 (#3239)

Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
Jared Van Bortel
2024-12-09 14:30:07 -05:00
committed by GitHub
parent 7628106d55
commit 70cca3fdcf
4 changed files with 58 additions and 11 deletions

View File

@@ -599,7 +599,14 @@ GridLayout {
Layout.fillWidth: false
name: editingDisabledReason ?? qsTr("Redo")
source: "qrc:/gpt4all/icons/regenerate.svg"
onClicked: redoResponseDialog.open()
onClicked: {
if (index == chatModel.count - 1) {
// regenerate last message without confirmation
currentChat.regenerateResponse(index);
return;
}
redoResponseDialog.open();
}
}
ChatMessageButton {