mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-12 05:12:07 +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
|
padding: 10
|
||||||
wrapMode: TextArea.Wrap
|
wrapMode: TextArea.Wrap
|
||||||
onTextChanged: {
|
onTextChanged: {
|
||||||
|
if (settings.promptTemplate.indexOf("%1") === -1)
|
||||||
|
return;
|
||||||
settings.promptTemplate = text
|
settings.promptTemplate = text
|
||||||
settings.sync()
|
settings.sync()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user