Skip to content

Commit

Permalink
fix: cortexso model download
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Jan 21, 2025
1 parent a21c224 commit 80c327b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engine/services/model_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,8 @@ ModelService::DownloadModelFromCortexsoAsync(
.branch_name = branch,
.path_to_model_yaml = rel.string(),
.model_alias = unique_model_id,
.status = cortex::db::ModelStatus::Downloaded};
.status = cortex::db::ModelStatus::Downloaded,
.engine = mc.engine};
auto result = db_service_->AddModelEntry(model_entry);

if (result.has_error()) {
Expand All @@ -627,6 +628,7 @@ ModelService::DownloadModelFromCortexsoAsync(
} else {
if (auto m = db_service_->GetModelInfo(unique_model_id); m.has_value()) {
auto upd_m = m.value();
upd_m.path_to_model_yaml = rel.string();
upd_m.status = cortex::db::ModelStatus::Downloaded;
if (auto r = db_service_->UpdateModelEntry(unique_model_id, upd_m);
r.has_error()) {
Expand Down

0 comments on commit 80c327b

Please sign in to comment.