|
|
@ -18,7 +18,6 @@ Window {
|
|
|
|
id: theme
|
|
|
|
id: theme
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
property string chatId: Network.generateUniqueId()
|
|
|
|
|
|
|
|
property var chatModel: LLM.currentChat.chatModel
|
|
|
|
property var chatModel: LLM.currentChat.chatModel
|
|
|
|
|
|
|
|
|
|
|
|
color: theme.textColor
|
|
|
|
color: theme.textColor
|
|
|
@ -172,7 +171,7 @@ Window {
|
|
|
|
onActivated: {
|
|
|
|
onActivated: {
|
|
|
|
LLM.stopGenerating()
|
|
|
|
LLM.stopGenerating()
|
|
|
|
LLM.modelName = comboBox.currentText
|
|
|
|
LLM.modelName = comboBox.currentText
|
|
|
|
chatModel.clear()
|
|
|
|
LLM.currentChat.reset();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -474,8 +473,7 @@ Window {
|
|
|
|
onClicked: {
|
|
|
|
onClicked: {
|
|
|
|
LLM.stopGenerating()
|
|
|
|
LLM.stopGenerating()
|
|
|
|
LLM.resetContext()
|
|
|
|
LLM.resetContext()
|
|
|
|
chatId = Network.generateUniqueId()
|
|
|
|
LLM.currentChat.reset();
|
|
|
|
chatModel.clear()
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -750,7 +748,7 @@ Window {
|
|
|
|
chatModel.updateNewResponse(index, response)
|
|
|
|
chatModel.updateNewResponse(index, response)
|
|
|
|
chatModel.updateThumbsUpState(index, false)
|
|
|
|
chatModel.updateThumbsUpState(index, false)
|
|
|
|
chatModel.updateThumbsDownState(index, true)
|
|
|
|
chatModel.updateThumbsDownState(index, true)
|
|
|
|
Network.sendConversation(chatId, getConversationJson());
|
|
|
|
Network.sendConversation(LLM.currentChat.id, getConversationJson());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -782,7 +780,7 @@ Window {
|
|
|
|
chatModel.updateNewResponse(index, "")
|
|
|
|
chatModel.updateNewResponse(index, "")
|
|
|
|
chatModel.updateThumbsUpState(index, true)
|
|
|
|
chatModel.updateThumbsUpState(index, true)
|
|
|
|
chatModel.updateThumbsDownState(index, false)
|
|
|
|
chatModel.updateThumbsDownState(index, false)
|
|
|
|
Network.sendConversation(chatId, getConversationJson());
|
|
|
|
Network.sendConversation(LLM.currentChat.id, getConversationJson());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|