Skip to content

Commit 0f66207

Browse files
authored
Merge pull request #148 from janhq/136-bug-model-loading-failed-message
chore: change the typo for model loading
2 parents ce99d50 + e5091c6 commit 0f66207

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controllers/llamaCPP.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,15 +355,15 @@ void llamaCPP::loadModel(
355355
if (!llama.load_model(params)) {
356356
LOG_ERROR << "Error loading the model will exit the program";
357357
Json::Value jsonResp;
358-
jsonResp["message"] = "Model loaded failed";
358+
jsonResp["message"] = "Failed to load model";
359359
auto resp = nitro_utils::nitroHttpJsonResponse(jsonResp);
360360
resp->setStatusCode(drogon::k500InternalServerError);
361361
callback(resp);
362362
}
363363
llama.initialize();
364364

365365
Json::Value jsonResp;
366-
jsonResp["message"] = "Model loaded successfully";
366+
jsonResp["message"] = "Failed to load model";
367367
model_loaded = true;
368368
auto resp = nitro_utils::nitroHttpJsonResponse(jsonResp);
369369

0 commit comments

Comments
 (0)