From 124f48f1b7a84de18c7b579a5eca3d6db449e1e5 Mon Sep 17 00:00:00 2001 From: Adir Amsalem Date: Thu, 9 Jul 2026 14:59:13 +0300 Subject: [PATCH] Remove the deprecated mirage_v2 alias mirage_v2 aliased lucy-restyle-2. Drops the kRealtime registry entry (array size 10->9) and the doctest CHECK line. Breaking: realtime('mirage_v2') now throws ModelNotFound. --- src/models.cpp | 3 +-- tests/test_models.cpp | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/models.cpp b/src/models.cpp index b65ad8c..ebc970d 100644 --- a/src/models.cpp +++ b/src/models.cpp @@ -21,7 +21,7 @@ struct Entry { // Realtime model registry. Kept in sync with the shared model list across the // Decart SDKs. All realtime models stream over `/v1/stream`. -constexpr std::array kRealtime = {{ +constexpr std::array kRealtime = {{ // Canonical {"lucy-2.1", 30, 1088, 624, true}, {"lucy-2.5", 30, 1280, 720, true}, @@ -33,7 +33,6 @@ constexpr std::array kRealtime = {{ {"lucy-vton-latest", 30, 1088, 624, false}, {"lucy-restyle-latest", 30, 1280, 704, false}, // Deprecated aliases (still accepted) - {"mirage_v2", 30, 1280, 704, false}, {"lucy-2.1-vton-2", 30, 1088, 624, false}, }}; diff --git a/tests/test_models.cpp b/tests/test_models.cpp index 46b4a11..2145303 100644 --- a/tests/test_models.cpp +++ b/tests/test_models.cpp @@ -29,7 +29,6 @@ TEST_CASE("realtime() resolves canonical models with correct geometry") { 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-2.1-vton-2")); }