Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions engine/commands/model_pull_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ void ModelPullCmd::Exec(const std::string& input) {
auto result = model_service_.DownloadModel(input);
if (result.has_error()) {
CLI_LOG(result.error());
} else {
CLI_LOG("Model downloaded successfully!");
}
}
}
}; // namespace commands
2 changes: 2 additions & 0 deletions engine/services/download_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ cpp::result<void, std::string> DownloadService::Download(
CLI_LOG("Resuming download..");
} else {
CLI_LOG("Start over..");
return {};
}
} else {
CLI_LOG(download_item.localPath.filename().string()
Expand Down Expand Up @@ -231,6 +232,7 @@ cpp::result<void, std::string> DownloadService::Download(

fclose(file);
curl_easy_cleanup(curl);
CLI_LOG("Model " << download_id << " downloaded successfully!")
return {};
}

Expand Down
2 changes: 0 additions & 2 deletions engine/services/model_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ cpp::result<std::string, std::string> ModelService::HandleUrl(
}}}};

auto on_finished = [&](const DownloadTask& finishedTask) {
CLI_LOG("Model " << finishedTask.id << " downloaded successfully!")
auto gguf_download_item = finishedTask.items[0];
ParseGguf(gguf_download_item, author);
};
Expand Down Expand Up @@ -295,7 +294,6 @@ cpp::result<std::string, std::string> ModelService::DownloadModelFromCortexso(
return cpp::fail(result.error());
}

CLI_LOG("Model " << model_id << " downloaded successfully!")
return model_id;
}

Expand Down
Loading