From 98207deb9d26ec01a4b372fd57b6ddf91a3c7f59 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 30 May 2023 16:15:52 -0400 Subject: [PATCH] Fix remove model from model download for regular models. --- gpt4all-chat/download.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gpt4all-chat/download.cpp b/gpt4all-chat/download.cpp index d82b674b..a8419fd8 100644 --- a/gpt4all-chat/download.cpp +++ b/gpt4all-chat/download.cpp @@ -291,9 +291,8 @@ void Download::removeModel(const QString &modelFile) { const bool isChatGPT = modelFile.startsWith("chatgpt-"); const QString filePath = downloadLocalModelsPath() - + (!isChatGPT ? "ggml-" : QString()) + modelFile - + (!isChatGPT ? ".bin" : ".txt"); + + (isChatGPT ? ".txt" : QString()); QFile file(filePath); if (!file.exists()) { qWarning() << "ERROR: Cannot remove file that does not exist" << filePath;