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