From 0f9b80e6b6a52df516f3e5643b77b53d9d9a9591 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Sat, 15 Apr 2023 10:21:29 -0700 Subject: [PATCH] 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. --- llm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm.cpp b/llm.cpp index 58766a37..8741b303 100644 --- a/llm.cpp +++ b/llm.cpp @@ -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(); }