Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d3e886b

Browse files
fix: minor log issue and engine name issue (#1427)
* fix: log * fix: engine name --------- Co-authored-by: vansangpfiev <sang@jan.ai>
1 parent 6f7a3ed commit d3e886b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

engine/commands/run_cmd.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ void RunCmd::Exec(bool chat_flag) {
9191
// Always start model if not llamacpp
9292
// If it is llamacpp, then check model status first
9393
{
94-
if ((mc.engine.find("llamacpp") == std::string::npos) ||
94+
if ((mc.engine.find(kLlamaRepo) == std::string::npos &&
95+
mc.engine.find(kLlamaEngine) == std::string::npos) ||
9596
!commands::ModelStatusCmd().IsLoaded(host_, port_, *model_id)) {
9697
if (!ModelStartCmd().Exec(host_, port_, *model_id)) {
9798
return;

engine/utils/file_manager_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ inline void CreateConfigFileIfNotExist() {
140140
CLI_LOG("Config file not found. Creating one at " + config_path.string());
141141
auto defaultDataFolderPath =
142142
file_manager_utils::GetHomeDirectoryPath() / default_data_folder_name;
143-
CTL_INF("Default data folder path: " + defaultDataFolderPath.string());
143+
CLI_LOG("Default data folder path: " + defaultDataFolderPath.string());
144144

145145
auto config = config_yaml_utils::CortexConfig{
146146
.logFolderPath = defaultDataFolderPath.string(),
@@ -188,7 +188,7 @@ inline std::filesystem::path GetCortexDataPath() {
188188
}
189189

190190
if (!std::filesystem::exists(data_folder_path)) {
191-
CTL_INF("Cortex home folder not found. Create one: " +
191+
CLI_LOG("Cortex home folder not found. Create one: " +
192192
data_folder_path.string());
193193
std::filesystem::create_directory(data_folder_path);
194194
}

0 commit comments

Comments
 (0)