mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-28 04:20:40 +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
078b755ab8
commit
391904efae
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