mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-09-06 19:10:15 +00:00
Fix up model names that don't begin with 'ggml-'
This commit is contained in:
@@ -83,7 +83,7 @@ Dialog {
|
||||
id: modelName
|
||||
objectName: "modelName"
|
||||
property string filename: modelData.filename
|
||||
text: !modelData.isChatGPT ? filename.slice(5, filename.length - 4) : filename
|
||||
text: !modelData.isChatGPT ? (filename.startsWith("ggml-") ? filename.slice(5, filename.length - 4) : filename.slice(0, filename.length - 4)) : filename
|
||||
padding: 20
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left
|
||||
|
Reference in New Issue
Block a user