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

Commit 9940c05

Browse files
fix: remove url check for remote engine (#1859)
Co-authored-by: vansangpfiev <sang@jan.ai>
1 parent ccece16 commit 9940c05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/controllers/engines.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ void Engines::InstallRemoteEngine(
251251
.get("get_models_url", "")
252252
.asString();
253253

254-
if (engine.empty() || type.empty() || url.empty()) {
254+
if (engine.empty() || type.empty()) {
255255
Json::Value res;
256-
res["message"] = "Engine name, type, url are required";
256+
res["message"] = "Engine name, type are required";
257257
auto resp = cortex_utils::CreateCortexHttpJsonResponse(res);
258258
resp->setStatusCode(k400BadRequest);
259259
callback(resp);

0 commit comments

Comments
 (0)