Repository navigation
feat: add lucy-vton-3.6 (realtime + batch) at 720p - #47
Conversation
|
CI note: the failure is pre-existing and unrelated to this change. The failing step is Build iOS App — What matters for this PR is the step before it: Build Hygiene (Reset Package State) ( Still worth fixing the destination specifier separately so |
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.
f4e8a6a to
816846f
Compare
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.
Description
Registers
lucy-vton-3.6on 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.lucy-vton-lateststill resolves tolucy-vton-3.5. 3.6 is opt-in by explicit name; the alias comments are untouched.lucy-vton-3.5is unchanged — purely additive.1280x720on 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
Changes
Sources/DecartSDK/Models/Models.swiftRealtimeModel+VideoModelcases, bothallCasesoverrides, both factoryswitcharmsSources/DecartSDK/Models/Inputs/ModelsInputFactory.swift.videoEditinput-type armTests/DecartSDKTests/ModelConfigTests.swiftexpectedCasesarrays, twoassertModelblocks (realtime assertssupportedSpeeds: [])Example/Example/Config.swiftlucyEditPresetsarmREADME.mdThe two
allCasesoverrides are hand-maintained — the compiler does not catch a miss there, so they are updated explicitly and pinned by theexpectedCasesassertions. The two factoryswitches have nodefault:arm, so the compiler does enforce the new case.Why the speed capability is omitted
supportedSpeedsis 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-swiftandwebsocket-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 Appfails onxcodebuild: Unable to find a destination matching the provided destination specifier, and the same step fails identically onmain. 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 adefault:arm.Verified by inspection: both factory switches updated, every other
switchover these enums updated (ModelsInputFactory.videoInputTypeandExample/Config.presets— the only two), bothallCasesoverrides 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 overRealtimeModel/VideoModelin 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/VideoModelmay need a new case.Overview
Adds
lucy-vton-3.6as 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 advertisespeed: .fast— realtimeModelDefinitionomitssupportedSpeeds.lucy-vton-latestis unchanged (still 3.5). Registry lists, example preset routing, README, and JS-SDK-aligned tests are updated;lucy-vton-3.5behavior is untouched.Reviewed by Cursor Bugbot for commit 0e15893. Bugbot is set up for automated code reviews on this repo. Configure here.