diff --git a/gpt4all-chat/modellist.cpp b/gpt4all-chat/modellist.cpp index 80e7e411..13a9d3cf 100644 --- a/gpt4all-chat/modellist.cpp +++ b/gpt4all-chat/modellist.cpp @@ -1178,7 +1178,7 @@ void ModelList::updateModelsFromDirectory() it.next(); if (!it.fileInfo().isDir()) { QString filename = it.fileName(); - if (filename.endsWith(".txt")) { + if (filename.startsWith("chatgpt-") && filename.endsWith(".txt")) { QString apikey; QString modelname(filename); modelname.chop(4); // strip ".txt" extension @@ -1648,7 +1648,7 @@ void ModelList::parseModelsJsonFile(const QByteArray &jsonData, bool save) "
  • You can apply for an API key with Nomic Atlas.
  • "); const QString modelName = "Nomic Embed"; const QString id = modelName; - const QString modelFilename = "nomic-embed-text-v1.txt"; + const QString modelFilename = "nomic-embed-text-v1.txt"; // FIXME: This should be made to use '.rmodel' as well if (contains(modelFilename)) changeId(modelFilename, id); if (!contains(id))