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

Commit d624f30

Browse files
committed
fix: filter out imported model for model sources
1 parent ce1fbe0 commit d624f30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

engine/database/models.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ cpp::result<std::vector<ModelEntry>, std::string> Models::GetModelSources()
310310
"SELECT model_id, author_repo_id, branch_name, "
311311
"path_to_model_yaml, model_alias, model_format, "
312312
"model_source, status, engine, metadata FROM models "
313-
"WHERE model_source != \"\" AND (status = \"downloaded\" OR status = "
313+
"WHERE model_source != \"\" AND model_source != \"imported\" AND "
314+
"(status = \"downloaded\" OR status = "
314315
"\"downloadable\")");
315316
while (query.executeStep()) {
316317
ModelEntry entry;

engine/services/model_service.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ ModelService::ModelService(std::shared_ptr<DatabaseService> db_service,
155155
inference_svc_(inference_service),
156156
engine_svc_(engine_svc),
157157
task_queue_(task_queue) {
158-
ProcessBgrTasks();
158+
// ProcessBgrTasks();
159159
};
160160

161161
void ModelService::ForceIndexingModelList() {

0 commit comments

Comments
 (0)