mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-05-12 02:18:25 +00:00
Don't allow setting an invalid prompt template.
This commit is contained in:
parent
0780393d00
commit
b56cc61ca2
@ -566,6 +566,8 @@ Dialog {
|
||||
padding: 10
|
||||
wrapMode: TextArea.Wrap
|
||||
onTextChanged: {
|
||||
if (settings.promptTemplate.indexOf("%1") === -1)
|
||||
return;
|
||||
settings.promptTemplate = text
|
||||
settings.sync()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user