diff --git a/engine/services/model_service.cc b/engine/services/model_service.cc index d9c2aa48f..1b0946133 100644 --- a/engine/services/model_service.cc +++ b/engine/services/model_service.cc @@ -310,7 +310,7 @@ cpp::result ModelService::DownloadModelFromCortexso( } std::string model_id{name + ":" + branch}; - auto on_finished = [&](const DownloadTask& finishedTask) { + auto on_finished = [&, model_id](const DownloadTask& finishedTask) { const DownloadItem* model_yml_item = nullptr; auto need_parse_gguf = true;