mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-06-20 12:44:51 +00:00
Disable input until model is loaded.
This commit is contained in:
parent
0ea31487e3
commit
ffe52fc5cf
7
main.qml
7
main.qml
@ -379,6 +379,7 @@ Window {
|
||||
anchors.margins: 30
|
||||
color: "#dadadc"
|
||||
padding: 20
|
||||
enabled: LLM.isModelLoaded
|
||||
font.pixelSize: 24
|
||||
placeholderText: qsTr("Send a message...")
|
||||
placeholderTextColor: "#7d7d8e"
|
||||
@ -398,12 +399,6 @@ Window {
|
||||
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)
|
||||
// contextPrompt += chatModel.get(i).value + "\n";
|
||||
// prompt = contextPrompt + textInput.text + "\n"
|
||||
|
||||
LLM.resetResponse()
|
||||
LLM.prompt(prompt)
|
||||
textInput.text = ""
|
||||
|
Loading…
Reference in New Issue
Block a user