mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-08 07:10:32 +00:00
Use completeBaseName to display model name
this cuts the filename at the *final* dot instead of the first, allowing model names with version numbers to be displayed correctly.
This commit is contained in:
parent
2f3a46c17f
commit
0f9b80e6b6
2
llm.cpp
2
llm.cpp
@ -52,7 +52,7 @@ bool LLMObject::loadModel()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_llmodel) {
|
if (m_llmodel) {
|
||||||
m_modelName = info.baseName().remove(0, 5); // remove the ggml- prefix
|
m_modelName = info.completeBaseName().remove(0, 5); // remove the ggml- prefix
|
||||||
emit modelNameChanged();
|
emit modelNameChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user