mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
Fix remove model from model download for regular models.
This commit is contained in:
parent
4a317eeb33
commit
98207deb9d
@ -291,9 +291,8 @@ void Download::removeModel(const QString &modelFile)
|
|||||||
{
|
{
|
||||||
const bool isChatGPT = modelFile.startsWith("chatgpt-");
|
const bool isChatGPT = modelFile.startsWith("chatgpt-");
|
||||||
const QString filePath = downloadLocalModelsPath()
|
const QString filePath = downloadLocalModelsPath()
|
||||||
+ (!isChatGPT ? "ggml-" : QString())
|
|
||||||
+ modelFile
|
+ modelFile
|
||||||
+ (!isChatGPT ? ".bin" : ".txt");
|
+ (isChatGPT ? ".txt" : QString());
|
||||||
QFile file(filePath);
|
QFile file(filePath);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
qWarning() << "ERROR: Cannot remove file that does not exist" << filePath;
|
qWarning() << "ERROR: Cannot remove file that does not exist" << filePath;
|
||||||
|
Loading…
Reference in New Issue
Block a user