From 189ac822772ca49f553a97948cd879265d137d35 Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Tue, 27 Jun 2023 15:01:16 -0400 Subject: [PATCH] Fix server mode. --- gpt4all-chat/server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt4all-chat/server.cpp b/gpt4all-chat/server.cpp index 5d49733d..869cef6e 100644 --- a/gpt4all-chat/server.cpp +++ b/gpt4all-chat/server.cpp @@ -284,7 +284,7 @@ QHttpServerResponse Server::handleCompletionRequest(const QHttpServerRequest &re // load the new model if necessary setShouldBeLoaded(true); - if (!modelInfo.name.isEmpty()) { + if (modelInfo.filename.isEmpty()) { std::cerr << "ERROR: couldn't load default model " << modelRequested.toStdString() << std::endl; return QHttpServerResponse(QHttpServerResponder::StatusCode::BadRequest); } else if (!loadModel(modelInfo)) {