Skip to content

feat: add lucy-vton-3.6 (realtime + batch) at 720p - #47

Merged
tomershlasky merged 2 commits into
mainfrom
feat/lucy-vton-3.6
Oct 7, 2026
Merged

tomershlasky merged 2 commits into
mainfrom
feat/lucy-vton-3.6

Conversation

@tomershlasky

@tomershlasky tomershlasky commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Registers lucy-vton-3.6 on the realtime and video surfaces. Mirrors DecartAI/sdk#217 — the JS SDK registry is the source of truth this package's tests are written against. The model is already served in production; this only makes it reachable through the typed SDK surface.

  1. lucy-vton-latest still resolves to lucy-vton-3.5. 3.6 is opt-in by explicit name; the alias comments are untouched.
  2. 3.6 is not offered on the fast tier, so the entry omits the speed capability and the fast-mode prose is unchanged.
  3. lucy-vton-3.5 is unchanged — purely additive.

1280x720 on both surfaces, fps 30 realtime / 20 video, matching what the API serves and confirmed against the deployed model rather than copied from a sibling.

Usage

let model = Models.realtime(.lucyVton3_6)
let videoModel = Models.video(.lucyVton3_6)

Changes

File Change
Sources/DecartSDK/Models/Models.swift RealtimeModel + VideoModel cases, both allCases overrides, both factory switch arms
Sources/DecartSDK/Models/Inputs/ModelsInputFactory.swift .videoEdit input-type arm
Tests/DecartSDKTests/ModelConfigTests.swift both expectedCases arrays, two assertModel blocks (realtime asserts supportedSpeeds: [])
Example/Example/Config.swift lucyEditPresets arm
README.md Available Models lists

The two allCases overrides are hand-maintained — the compiler does not catch a miss there, so they are updated explicitly and pinned by the expectedCases assertions. The two factory switches have no default: arm, so the compiler does enforce the new case.

Why the speed capability is omitted

supportedSpeeds is a claim that the service will serve the model on that tier and price it accordingly — an unsupported tier is rejected at connect time, not silently ignored. 3.6 is not offered on it, so the capability is left off here and the fast-model pin in the tests is deliberately unchanged.

Verification

I could not compile this locally — it was authored on a Linux box with no Swift toolchain, and the package depends on client-sdk-swift and websocket-apple, which are Apple-platform-only. CI (macos-latest, Xcode 26.1.1) is the real check.

Note the current red check is pre-existing: Build iOS App fails on xcodebuild: Unable to find a destination matching the provided destination specifier, and the same step fails identically on main. The step before it, swift build -c debug, passes — which is what proves the new enum case is wired into both factories, since neither has a default: arm.

Verified by inspection: both factory switches updated, every other switch over these enums updated (ModelsInputFactory.videoInputType and Example/Config.presets — the only two), both allCases overrides updated, raw values match the service model id.

Compatibility

Source-compatible and additive. Adding a case to a public non-frozen enum is source-compatible for library clients; exhaustive switches over RealtimeModel / VideoModel in downstream app code will need a new arm, as they did for 3.5.


Note

Low Risk
Additive enum and registry entries with no auth or billing logic changes; downstream exhaustive switches on RealtimeModel/VideoModel may need a new case.

Overview
Adds lucy-vton-3.6 as an opt-in virtual try-on model on both realtime (/v1/stream) and batch video (/v1/generate + jobs) surfaces, wired like 3.5 (reference image on realtime, video edit input type) at 1280×720 with 30 fps realtime / 20 fps video.

Unlike lucy-vton-3.5, 3.6 does not advertise speed: .fast — realtime ModelDefinition omits supportedSpeeds. lucy-vton-latest is unchanged (still 3.5). Registry lists, example preset routing, README, and JS-SDK-aligned tests are updated; lucy-vton-3.5 behavior is untouched.

Reviewed by Cursor Bugbot for commit 0e15893. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Contributor Author

CI note: the failure is pre-existing and unrelated to this change.

The failing step is Build iOS App — xcodebuild: error: Unable to find a destination matching the provided destination specifier, i.e. the runner has no matching simulator for the hardcoded destination. The same workflow fails at the same step on main (most recent runs: 94b29933 2026-09-24, fc3c93c3 2026-09-23, 888fb9f0 2026-09-15 — last green was cd1c862e), with an identical step breakdown.

What matters for this PR is the step before it: Build Hygiene (Reset Package State) (swift package reset && swift build -c debug) passed. That compiles Models.swift and ModelsInputFactory.swift, and since neither Models.realtime nor Models.video has a default: arm, a missing .lucyVton3_6 case would have been a hard compile error there. So the new enum case is wired into both factories and the input-type switch.

Still worth fixing the destination specifier separately so ModelConfigTests (including the two new assertModel blocks) actually executes in CI.

Mirrors DecartAI/sdk#217. The model is already served in production; this only
makes it reachable through the typed SDK surface.

- 1280x720 on both surfaces, fps 30 realtime / 20 video.
- No supportedSpeeds: lucy-vton-3.6 is not offered on the fast tier, so the
  fastModels set in ModelConfigTests is deliberately unchanged.
- lucy-vton-latest still resolves to lucy-vton-3.5; 3.6 is opt-in by name.

Both `allCases` overrides are hand-maintained, so they are updated explicitly;
the two factory switches have no `default:` arm, so the compiler enforces them.
Per review on the JS SDK: supportedSpeeds is simply not set for lucy-vton-3.6,
so a comment saying so is state that can go stale without anything catching it.
@tomershlasky
tomershlasky merged commit 0c793bd into main Oct 7, 2026
1 of 2 checks passed
@tomershlasky
tomershlasky deleted the feat/lucy-vton-3.6 branch October 7, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants