Skip to content

Commit

Permalink
fix: minor log issue and engine name issue (#1427)
Browse files Browse the repository at this point in the history
* fix: log

* fix: engine name

---------

Co-authored-by: vansangpfiev <[email protected]>
  • Loading branch information
vansangpfiev and sangjanai authored Oct 4, 2024
1 parent 6f7a3ed commit d3e886b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion engine/commands/run_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ void RunCmd::Exec(bool chat_flag) {
// Always start model if not llamacpp
// If it is llamacpp, then check model status first
{
if ((mc.engine.find("llamacpp") == std::string::npos) ||
if ((mc.engine.find(kLlamaRepo) == std::string::npos &&
mc.engine.find(kLlamaEngine) == std::string::npos) ||
!commands::ModelStatusCmd().IsLoaded(host_, port_, *model_id)) {
if (!ModelStartCmd().Exec(host_, port_, *model_id)) {
return;
Expand Down
4 changes: 2 additions & 2 deletions engine/utils/file_manager_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ inline void CreateConfigFileIfNotExist() {
CLI_LOG("Config file not found. Creating one at " + config_path.string());
auto defaultDataFolderPath =
file_manager_utils::GetHomeDirectoryPath() / default_data_folder_name;
CTL_INF("Default data folder path: " + defaultDataFolderPath.string());
CLI_LOG("Default data folder path: " + defaultDataFolderPath.string());

auto config = config_yaml_utils::CortexConfig{
.logFolderPath = defaultDataFolderPath.string(),
Expand Down Expand Up @@ -188,7 +188,7 @@ inline std::filesystem::path GetCortexDataPath() {
}

if (!std::filesystem::exists(data_folder_path)) {
CTL_INF("Cortex home folder not found. Create one: " +
CLI_LOG("Cortex home folder not found. Create one: " +
data_folder_path.string());
std::filesystem::create_directory(data_folder_path);
}
Expand Down

0 comments on commit d3e886b

Please sign in to comment.