Repository navigation
feat: add lucy-2.6 (realtime + batch) at 720p - #53
Merged
Merged
Conversation
lucy-2.6 is a field-for-field clone of lucy-2.5; this makes it reachable through the typed SDK surface. - RealtimeModel.lucy2_6 / VideoModel.lucy2_6, inserted right after lucy2_5 in the enums and in both hand-maintained `allCases` overrides. - Realtime: /v1/stream, 1280x720, 30 fps, reference image, supportedSpeeds [.fast]. Video: /v1/generate/lucy-2.6 + /v1/jobs/lucy-2.6, 1280x720, 20 fps. - ModelsInputFactory classifies it as .videoEdit; Example presets use the lucy-edit set. - ModelConfigTests: expected-case lists, registry assertions for both surfaces, and the fastModels set. - Speed doc comment and README fast-mode prose / model lists mention it. lucy-latest still resolves to lucy-2.5; it is left unchanged.
decartdev
approved these changes
Oct 25, 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.
Description
Registers
lucy-2.6(successor tolucy-2.5) on the realtime and video surfaces. It mirrors the JS SDK registry, which this package's tests follow.lucy-2.6copieslucy-2.5field for field.lucy-2.6is opt-in by explicit name.lucy-lateststill resolves tolucy-2.5; flipping it is a follow-up. Thelucy-latestdefinitions, comments and geometry test are untouched.?speed=fastand bills it like 2.5, so the realtime entry setssupportedSpeeds: [.fast]. TheSpeeddoc comment and the README fast-mode paragraph now list it. Batch models still advertise no speed tier.lucy-2.5is unchanged. This change only adds things.Usage
Changes
Sources/DecartSDK/Models/Models.swiftRealtimeModel+VideoModelcases right afterlucy2_5, bothallCasesoverrides, both factoryswitcharms (realtime:/v1/stream, 1280×720 @ 30, reference image,[.fast]; video:/v1/generate/lucy-2.6+/v1/jobs/lucy-2.6, 1280×720 @ 20)Sources/DecartSDK/Models/Inputs/ModelsInputFactory.swift.videoEditinput-type arm, same as.lucy2_5Sources/DecartSDK/Realtime/RealtimeConfiguration.swiftSpeeddoc comment listslucy-2.6Tests/DecartSDKTests/ModelConfigTests.swiftexpectedCasesarrays, twoassertModelblocks (realtime assertssupportedSpeeds: [.fast]),fastModelssetExample/Example/Config.swiftlucyEditPresetsarmREADME.mdThe two
allCasesoverrides are maintained by hand. The compiler doesn't catch a missed entry there, so they're updated explicitly and theexpectedCasesassertions check them. The factory and input-typeswitches have nodefault:arm, so the compiler enforces the new case. Those, plusExample/Config.presets(for:), are the onlyswitches over these enums in the repo.Verification
This was done on a Linux VM (Amazon Linux 2023, Swift 6.4.1 from the swift.org tarball), not on macOS or iOS. CI (
macos-latest, Xcode 26.1.1) is the real check.swift build --scratch-path /tmp/decart-ios-build(full package)LiveKitWebRTC.xcframeworkandRustLiveKitUniFFI.xcframeworkship Apple binaries only (While building for linux, no library for this platform was found). Nothing in this PR causes it. The full test suite therefore wasn't run either.swift buildin a harness package (see below)Example/Example/Config.swiftswift testin the harnessModelConfigTests: 4 tests, 0 failures (both registry tests, the fast-tier test, thelucy-latestgeometry test).lucy2_6removed fromvideoInputType(for:)switch must be exhaustive … add missing case: '.lucy2_6', so the harness does enforce the switchesorigin/main'sModels.swift/ModelsInputFactory.swift/Config.swifttype 'RealtimeModel' has no member 'lucy2_6', so the new tests do exercise the changeThe harness symlinks the unmodified repo files
Models.swift,ModelDataTypes.swift,ModelsInputFactory.swift,Example/Example/Config.swiftandModelConfigTests.swift. It adds three stand-ins for things missing on Linux:Speedenum, copied word for word fromRealtimeConfiguration.swift(that file imports LiveKit);import os.logresolves;Logger.The other test files (
SignalingURLTestsetc.) depend on LiveKit and weren't run.Compatibility
Additive and source-compatible. Adding a case to a public non-frozen enum is source-compatible for library clients. Downstream app code with an exhaustive
switchoverRealtimeModel/VideoModelwill need a new arm, as it did for earlier models.Follow-ups
lucy-latesttolucy-2.6once the server-side alias moves.Note
Low Risk
Additive public enum cases and mirrored model metadata; no changes to auth, networking behavior, or existing
lucy-2.5/lucy-latestresolution.Overview
Adds
lucy-2.6as an explicit realtime and queue/video model (RealtimeModel.lucy2_6/VideoModel.lucy2_6), aligned with the JS SDK registry.lucy-latestis unchanged and still mirrorslucy-2.5in tests and definitions.Realtime
Models.realtime(.lucy2_6)matcheslucy-2.5:/v1/stream, 1280×720 @ 30 fps, reference image, andsupportedSpeeds: [.fast]. BatchModels.video(.lucy2_6)uses/v1/generate/lucy-2.6and/v1/jobs/lucy-2.6at 20 fps.ModelsInputFactoryroutes it to.videoEdit, and the example app uses lucy edit presets for this model.Docs and comments (README fast-mode section,
SpeedonRealtimeConfiguration) now listlucy-2.6.ModelConfigTestscover registry entries, geometry, and fast-tier membership.Reviewed by Cursor Bugbot for commit 8a6fb7a. Bugbot is set up for automated code reviews on this repo. Configure here.