mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Naive version of chat context, but slow.
This commit is contained in:
parent
596592ce12
commit
91a2602d93
8
main.qml
8
main.qml
@ -205,10 +205,18 @@ Window {
|
||||
listElement.currentResponse = false
|
||||
listElement.value = LLM.response
|
||||
}
|
||||
|
||||
var prompt = textInput.text + "\n"
|
||||
chatModel.append({"name": qsTr("Prompt: "), "currentResponse": false, "value": textInput.text})
|
||||
chatModel.append({"name": qsTr("Response: "), "currentResponse": true, "value": "", "prompt": prompt})
|
||||
|
||||
// var contextPrompt = ""
|
||||
// for (var i = 0; i < chatModel.count; ++i) {
|
||||
// var listElement = chatModel.get(i)
|
||||
// contextPrompt += listElement.value + "\n";
|
||||
// }
|
||||
// prompt = contextPrompt + textInput.text + "\n"
|
||||
|
||||
LLM.resetResponse()
|
||||
LLM.prompt(prompt)
|
||||
textInput.text = ""
|
||||
|
Loading…
Reference in New Issue
Block a user