mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-28 20:40:40 +00:00
Fix server mode.
This commit is contained in:
parent
b56cc61ca2
commit
189ac82277
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user