From 4056ee954f6aa657b3bc6b61b3c722c57ba6f01b Mon Sep 17 00:00:00 2001 From: tikikun Date: Thu, 5 Oct 2023 14:17:31 +0700 Subject: [PATCH 1/2] error logging for not able to load model --- controllers/llamaCPP.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/llamaCPP.h b/controllers/llamaCPP.h index ad2b1c46a..fc719980c 100644 --- a/controllers/llamaCPP.h +++ b/controllers/llamaCPP.h @@ -1408,7 +1408,7 @@ class llamaCPP : public drogon::HttpSimpleController { // load the model if (!llama.loadModel(params)) { - LOG_ERROR_LLAMA("Strange error","Error loading the model will exit the program"); + LOG_ERROR << "Error loading the model will exit the program"; std::terminate(); } nitro_utils::nitro_logo(); From e1baaa3ad87e3110072108fc4ef6a745146d2414 Mon Sep 17 00:00:00 2001 From: tikikun Date: Thu, 5 Oct 2023 14:53:33 +0700 Subject: [PATCH 2/2] format a bit --- main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cc b/main.cc index 551f14e58..d10ed5a49 100644 --- a/main.cc +++ b/main.cc @@ -3,8 +3,8 @@ #include #if defined(__APPLE__) && defined(__MACH__) -#include #include // for dirname() +#include #elif defined(__linux__) #include // for dirname() #include // for readlink()