diff --git a/include/decart/models.h b/include/decart/models.h index d65d604..1f8a97b 100644 --- a/include/decart/models.h +++ b/include/decart/models.h @@ -27,7 +27,7 @@ namespace models { /// Resolve a realtime model by name. /// -/// Accepts canonical names ("lucy-2.1", "lucy-2.1-vton", "lucy-vton-2", +/// Accepts canonical names ("lucy-2.1", "lucy-vton-2", /// "lucy-vton-3", "lucy-restyle-2"), server-resolved aliases ("lucy-latest", /// "lucy-vton-latest", "lucy-restyle-latest"), and deprecated names (which emit /// no error but resolve to the same stream endpoint). diff --git a/src/models.cpp b/src/models.cpp index ff4cd8f..b90f000 100644 --- a/src/models.cpp +++ b/src/models.cpp @@ -20,10 +20,9 @@ struct Entry { // Realtime model registry. Kept in sync with the shared model list across the // Decart SDKs. All realtime models stream over `/v1/stream` at 30 fps. -constexpr std::array kRealtime = {{ +constexpr std::array kRealtime = {{ // Canonical {"lucy-2.1", 1088, 624, true}, - {"lucy-2.1-vton", 1088, 624, true}, {"lucy-vton-2", 1088, 624, true}, {"lucy-vton-3", 1088, 624, true}, {"lucy-restyle-2", 1280, 704, true}, @@ -33,7 +32,6 @@ constexpr std::array kRealtime = {{ {"lucy-restyle-latest", 1280, 704, false}, // Deprecated aliases (still accepted) {"mirage_v2", 1280, 704, false}, - {"lucy-vton", 1088, 624, false}, {"lucy-2.1-vton-2", 1088, 624, false}, }}; diff --git a/tests/test_models.cpp b/tests/test_models.cpp index e9f8935..aab7bda 100644 --- a/tests/test_models.cpp +++ b/tests/test_models.cpp @@ -23,7 +23,7 @@ TEST_CASE("realtime() accepts latest and deprecated aliases") { CHECK(models::realtime("lucy-latest").urlPath == "/v1/stream"); CHECK(models::realtime("lucy-vton-latest").name == "lucy-vton-latest"); CHECK(models::realtime("mirage_v2").width == 1280); // deprecated -> restyle geometry - CHECK(models::isRealtimeModel("lucy-vton")); + CHECK(models::isRealtimeModel("lucy-2.1-vton-2")); } TEST_CASE("realtime() throws ModelNotFound for unknown names") { @@ -41,6 +41,6 @@ TEST_CASE("realtime() throws ModelNotFound for unknown names") { TEST_CASE("listRealtime() honors canonicalOnly") { auto all = models::listRealtime(/*canonicalOnly=*/false); auto canonical = models::listRealtime(/*canonicalOnly=*/true); - CHECK(canonical.size() == 5); + CHECK(canonical.size() == 4); CHECK(all.size() > canonical.size()); }