From 4f45dda1cb8b40fb6c9a06576f76cb33ea1f19ac Mon Sep 17 00:00:00 2001 From: vansangpfiev Date: Tue, 14 May 2024 19:59:27 +0700 Subject: [PATCH] fix: print logic (#25) Co-authored-by: vansangpfiev --- src/llama_engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llama_engine.cc b/src/llama_engine.cc index c98e7579..c639f439 100644 --- a/src/llama_engine.cc +++ b/src/llama_engine.cc @@ -709,9 +709,9 @@ bool LlamaEngine::CheckModelLoaded( const std::string& model_id) { if (auto si = server_map_.find(model_id); si == server_map_.end() || !si->second.ctx.model_loaded_external) { - LOG_ERROR << "Error: model_id: " << model_id + LOG_WARN << "Error: model_id: " << model_id << ", existed: " << (si != server_map_.end()) - << ", loaded: " << (si == server_map_.end()); + << ", loaded: " << false; Json::Value jsonResp; jsonResp["message"] = "Model has not been loaded, please load model into nitro";