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.
pull/520/head
Aaron Miller 1 year ago committed by AT
parent 2f3a46c17f
commit 0f9b80e6b6

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

Loading…
Cancel
Save