Skip to content

Commit

Permalink
fix: print logic (#25)
Browse files Browse the repository at this point in the history
Co-authored-by: vansangpfiev <[email protected]>
  • Loading branch information
vansangpfiev and sangjanai authored May 14, 2024
1 parent cd01b6a commit 4f45dda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/llama_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 4f45dda

Please sign in to comment.