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

Commit 75a98b9

Browse files
committed
fix: api pull
1 parent 15d254e commit 75a98b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/controllers/models.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void Models::PullModel(const HttpRequestPtr& req,
3131
CTL_INF("Handle model input, model handle: " + model_handle);
3232
if (string_utils::StartsWith(model_handle, "https")) {
3333
return model_service_.HandleUrl(model_handle, true);
34-
} else if (model_handle.find(":") == std::string::npos) {
34+
} else if (model_handle.find(":") != std::string::npos) {
3535
auto model_and_branch = string_utils::SplitBy(model_handle, ":");
3636
return model_service_.DownloadModelFromCortexso(
3737
model_and_branch[0], model_and_branch[1], true);

0 commit comments

Comments
 (0)