diff --git a/engine/cli/main.cc b/engine/cli/main.cc index 52fc5591f..8ed4beb61 100644 --- a/engine/cli/main.cc +++ b/engine/cli/main.cc @@ -148,7 +148,6 @@ int main(int argc, char* argv[]) { if (should_check_for_latest_llamacpp_version) { std::thread t1([]() { - auto config = file_manager_utils::GetCortexConfig(); // TODO: namh current we only check for llamacpp. Need to add support for other engine auto get_latest_version = []() -> cpp::result { try { @@ -176,6 +175,7 @@ int main(int argc, char* argv[]) { auto now = std::chrono::system_clock::now(); CTL_DBG("latest llama.cpp version: " << res.value()); + auto config = file_manager_utils::GetCortexConfig(); config.checkedForLlamacppUpdateAt = std::chrono::duration_cast( now.time_since_epoch())