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 2f3a46c17f
commit 0f9b80e6b6

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();
}