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:
Aaron Miller 2023-04-15 10:21:29 -07:00 committed by AT
parent 078b755ab8
commit 391904efae

View File

@ -52,7 +52,7 @@ bool LLMObject::loadModel()
}
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();
}