From e5091c628fe09aa7cc7a3b8ce89cd6ddbf05b0e8 Mon Sep 17 00:00:00 2001 From: tikikun Date: Fri, 17 Nov 2023 14:03:08 +0700 Subject: [PATCH] chore: change the typo for model loading --- controllers/llamaCPP.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/llamaCPP.cc b/controllers/llamaCPP.cc index 415985a9f..e3901df60 100644 --- a/controllers/llamaCPP.cc +++ b/controllers/llamaCPP.cc @@ -355,7 +355,7 @@ void llamaCPP::loadModel( if (!llama.load_model(params)) { LOG_ERROR << "Error loading the model will exit the program"; Json::Value jsonResp; - jsonResp["message"] = "Model loaded failed"; + jsonResp["message"] = "Failed to load model"; auto resp = nitro_utils::nitroHttpJsonResponse(jsonResp); resp->setStatusCode(drogon::k500InternalServerError); callback(resp); @@ -363,7 +363,7 @@ void llamaCPP::loadModel( llama.initialize(); Json::Value jsonResp; - jsonResp["message"] = "Model loaded successfully"; + jsonResp["message"] = "Failed to load model"; model_loaded = true; auto resp = nitro_utils::nitroHttpJsonResponse(jsonResp);