mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-04 11:08:01 +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.currentResponse = false
|
||||||
listElement.value = LLM.response
|
listElement.value = LLM.response
|
||||||
}
|
}
|
||||||
|
|
||||||
var prompt = textInput.text + "\n"
|
var prompt = textInput.text + "\n"
|
||||||
chatModel.append({"name": qsTr("Prompt: "), "currentResponse": false, "value": textInput.text})
|
chatModel.append({"name": qsTr("Prompt: "), "currentResponse": false, "value": textInput.text})
|
||||||
chatModel.append({"name": qsTr("Response: "), "currentResponse": true, "value": "", "prompt": prompt})
|
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.resetResponse()
|
||||||
LLM.prompt(prompt)
|
LLM.prompt(prompt)
|
||||||
textInput.text = ""
|
textInput.text = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user