From 1d3f3a63a34bce23b2b3859724c4282ba5dcc95a Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Thu, 10 Oct 2024 16:50:42 -0400 Subject: [PATCH] modellist: fix missing fname in modelsJsonCacheFile() (#3072) Signed-off-by: Jared Van Bortel --- gpt4all-chat/src/modellist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/src/modellist.cpp b/gpt4all-chat/src/modellist.cpp index c54f4e77..7cd36094 100644 --- a/gpt4all-chat/src/modellist.cpp +++ b/gpt4all-chat/src/modellist.cpp @@ -1347,7 +1347,7 @@ static std::optional modelsJsonCacheFile() if (auto path = QStandardPaths::locate(loc, modelsJsonFname); !path.isEmpty()) return std::make_optional(path); if (auto path = QStandardPaths::writableLocation(loc); !path.isEmpty()) - return std::make_optional(path); + return std::make_optional(u"%1/%2"_s.arg(path, modelsJsonFname)); return std::nullopt; }