Repository navigation
feat: remove legacy lucy-clip model ID (and lucy-clip-latest, lucy-pro-v2v) - #51
Merged
Merged
Conversation
No video model uses the video-to-video input any more, so remove VideoToVideoInput, ModelInputType.videoToVideo, the QueueClient submit/submitAndPoll overloads that take it, the Example's now-unreachable branch, and the README API-reference entries.
…time and video surfaces Mirrors DecartAI/sdk#215. lucy-latest resolves to lucy-2.5, which already carries 1280x720, and lucy-2.1 serves the 720p shape too. fps is unchanged. Tests pin the new geometry and assert lucy-latest matches lucy-2.5 on both surfaces.
The macos-26 runner image only keeps the three newest iOS runtimes and no longer ships iOS 26.1, so xcodebuild can't resolve generic/platform=iOS with Xcode 26.1.1 (actions/runner-images#14146). Download it in the job.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 5c16151. Configure here.
| width: 1088, | ||
| height: 624, | ||
| width: 1280, | ||
| height: 720, |
There was a problem hiding this comment.
Wrong lucy-2.1 capture dimensions
Medium Severity
lucy-2.1 capture geometry is changed to 1280x720, the lucy-2.5 size. lucy-2.1 is a distinct older model whose registry size is 1088x624; createLocalCameraStream and preflight size frames from ModelDefinition, so realtime lucy-2.1 sessions would send the wrong shape.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 5c16151. Configure here.
decartdev
approved these changes
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Removes the legacy Lucy Clip model from the iOS SDK. Mirrors DecartAI/sdk#223 and follows the same shape as the earlier model-ID removal in #45.
VideoModel.lucyClip(lucy-clip),VideoModel.lucyClipLatest(lucy-clip-latest) and the deprecated aliasVideoModel.lucy_pro_v2v(lucy-pro-v2v) are removed. That covers the enum cases, the hand-maintainedVideoModel.allCases, theModels.video(_:)definitions (including thelucy-pro-v2vdeprecation warning) andModelsInputFactory.videoInputType(for:).VideoToVideoInput,ModelInputType.videoToVideoand theQueueClient.submit/submitAndPolloverloads that takeVideoToVideoInputare removed too.GenerateVideoViewpreview now uses.lucyLatest, and the unreachable.videoToVideobranch inVideoFetcheris gone..lucyLatestwithVideoEditInput.VideoModel.lucyClipis removed from Available Models, and theVideoToVideoInputoverload and initializer are removed from the API reference.ModelConfigTestsexpectedVideoModelcases go from 10 to 8.Every other model, and every field of the remaining input types, is unchanged.
lucy-restyle-v2vis still a deprecated alias.Compatibility: code that references
.lucyClip,.lucyClipLatest,.lucy_pro_v2v,VideoToVideoInputorModelInputType.videoToVideono longer compiles, andVideoModel(rawValue: "lucy-clip")(likewiselucy-clip-latestandlucy-pro-v2v) returnsnil. Use.lucyLatestor.lucy2_5withVideoEditInputinstead.Test plan
These checks were run on Linux with Swift 6.2.1, not on macOS or iOS.
grep -rn -i "lucy-clip\|lucy_clip\|lucyClip\|lucy-pro-v2v\|lucy_pro_v2v"andgrep -rn "VideoToVideoInput\|videoToVideo"both return nothing.swift build/swift test: not run. The package depends on LiveKit and the SDK importsos.log/ Apple-only frameworks, so it doesn't build on Linux. The Example app (SwiftUI/PhotosUI) was not built either.Models.swift,ModelDataTypes.swift,Inputs/*,ModelsInputFactory.swift,QueueClient.swift,QueueTypes.swiftandShared/*. It stubsos.logLoggerandUTType, and copiesSpeed(fromRealtimeConfiguration.swift, which imports LiveKit). Bothswitches overVideoModelhave nodefault:, so the compiler checks they cover every case.ModelConfigTestspass (3/3)..videoEditor.videoRestyle;QueueClientedit and restyle overloads run end-to-end against a mockURLProtocol(correct/v1/jobs/…paths, multipart fields, nonum_inference_steps);invalidInput;VideoFetcher.submitVideoJobswitch, copied verbatim with stubbed PhotosUI/Factory types, compiles and runs. Compiling the pre-cleanup copy of that switch fails withtype 'ModelInputType' has no member 'videoToVideo', as expected.swift build+ iOSxcodebuild): passes; see "Also in this PR" for the workflow fix.Also in this PR
lucy-2.1andlucy-latestnow report 1280x720 instead of 1088x624 on both the realtime and video surfaces.lucy-2.5already uses 1280x720 andlucy-latestresolves to it;lucy-2.1serves the 720p shape too. fps is unchanged, and no other model's geometry changes.ModelConfigTestspins the new values and addstestLucyLatestMatchesResolvedModelGeometry, which checks thatlucy-latestmatcheslucy-2.5on each surface. The Linux harness passes 10/10; against the oldModels.swift, the new assertions fail on exactly those four entries (12 assertion failures).Build iOS Appstep failed (onmaintoo) withUnable to find a destination matching the provided destination specifier. Themacos-26runner image keeps only the three newest iOS runtimes and no longer includes iOS 26.1, which Xcode 26.1.1 needs forgeneric/platform=iOS(macos-26 arm runner missing iOS simulator 26.1 actions/runner-images#14146). The job now runsxcodebuild -downloadPlatform iOSafter selecting Xcode. The Xcode pin, toolchain and job name are unchanged.Build and Test (Swift 6.2.1)passes on this branch. It downloads the iOS 26.1 runtime (about 8 GB, roughly 2 minutes), thenswift buildand thegeneric/platform=iOSxcodebuildboth succeed. The workflow only builds the package; it doesn't runswift test, soModelConfigTestshas only been run in the Linux harness described above.Note
High Risk
Breaking public API removals and capture dimension changes for lucy-2.1/lucy-latest can break existing integrations and streaming layout.
Overview
Removes legacy Lucy Clip video-to-video support from the iOS SDK:
VideoModel.lucyClip,lucyClipLatest, and deprecatedlucy_pro_v2vare gone, along withVideoToVideoInput,ModelInputType.videoToVideo, and the matchingQueueClientsubmit/poll overloads. Callers should useVideoEditInputwith.lucyLatestor.lucy2_5instead.Updates model geometry for
lucy-2.1,lucy-latest, and related realtime/video definitions from 1088×624 to 1280×720, with tests assertinglucy-latestmatcheslucy-2.5dimensions. Example app, README, andModelConfigTestsare aligned with the slimmer model list.CI adds an
xcodebuild -downloadPlatform iOSstep so macOS runners can build forgeneric/platform=iOSwith Xcode 26.1.1.Reviewed by Cursor Bugbot for commit 5c16151. Bugbot is set up for automated code reviews on this repo. Configure here.