Skip to content

feat: add lucy-2.6 (realtime + batch) at 720p - #53

Merged
AdirAmsalem merged 1 commit into
mainfrom
conductor/lucy-26-ios
Oct 25, 2026
Merged

AdirAmsalem merged 1 commit into
mainfrom
conductor/lucy-26-ios

Conversation

@AdirAmsalem

@AdirAmsalem AdirAmsalem commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Registers lucy-2.6 (successor to lucy-2.5) on the realtime and video surfaces. It mirrors the JS SDK registry, which this package's tests follow. lucy-2.6 copies lucy-2.5 field for field.

  1. lucy-2.6 is opt-in by explicit name. lucy-latest still resolves to lucy-2.5; flipping it is a follow-up. The lucy-latest definitions, comments and geometry test are untouched.
  2. 2.6 offers the fast tier on realtime. The API serves it on ?speed=fast and bills it like 2.5, so the realtime entry sets supportedSpeeds: [.fast]. The Speed doc comment and the README fast-mode paragraph now list it. Batch models still advertise no speed tier.
  3. Geometry confirmed against the deployed model config: 1280×720 on both surfaces, realtime 30 fps, batch 20 fps.
  4. lucy-2.5 is unchanged. This change only adds things.

Usage

// Realtime (optionally on the fast tier)
let realtimeManager = try client.createRealtimeManager(
	options: RealtimeConfiguration(model: Models.realtime(.lucy2_6), speed: .fast)
)

// Batch / queue
let videoModel = Models.video(.lucy2_6) // /v1/generate/lucy-2.6, /v1/jobs/lucy-2.6

Changes

File Change
Sources/DecartSDK/Models/Models.swift RealtimeModel + VideoModel cases right after lucy2_5, both allCases overrides, both factory switch arms (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 .videoEdit input-type arm, same as .lucy2_5
Sources/DecartSDK/Realtime/RealtimeConfiguration.swift Speed doc comment lists lucy-2.6
Tests/DecartSDKTests/ModelConfigTests.swift both expectedCases arrays, two assertModel blocks (realtime asserts supportedSpeeds: [.fast]), fastModels set
Example/Example/Config.swift lucyEditPresets arm
README.md Fast-mode paragraph and both Available Models lists

The two allCases overrides are maintained by hand. The compiler doesn't catch a missed entry there, so they're updated explicitly and the expectedCases assertions check them. The factory and input-type switches have no default: arm, so the compiler enforces the new case. Those, plus Example/Config.presets(for:), are the only switches 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.

Command Result
swift build --scratch-path /tmp/decart-ios-build (full package) ❌ Can't run on Linux. LiveKit's LiveKitWebRTC.xcframework and RustLiveKitUniFFI.xcframework ship 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 build in a harness package (see below) ✅ Build complete, including Example/Example/Config.swift
swift test in the harness ✅ ModelConfigTests: 4 tests, 0 failures (both registry tests, the fast-tier test, the lucy-latest geometry test)
Same harness, .lucy2_6 removed from videoInputType(for:) ❌ as expected: switch must be exhaustive … add missing case: '.lucy2_6', so the harness does enforce the switches
Same harness, with origin/main's Models.swift / ModelsInputFactory.swift / Config.swift ❌ as expected: type 'RealtimeModel' has no member 'lucy2_6', so the new tests do exercise the change

The harness symlinks the unmodified repo files Models.swift, ModelDataTypes.swift, ModelsInputFactory.swift, Example/Example/Config.swift and ModelConfigTests.swift. It adds three stand-ins for things missing on Linux:

  • the Speed enum, copied word for word from RealtimeConfiguration.swift (that file imports LiveKit);
  • an empty clang module so import os.log resolves;
  • a no-op Logger.

The other test files (SignalingURLTests etc.) 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 switch over RealtimeModel / VideoModel will need a new arm, as it did for earlier models.

Follow-ups

  • Flip lucy-latest to lucy-2.6 once 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-latest resolution.

Overview
Adds lucy-2.6 as an explicit realtime and queue/video model (RealtimeModel.lucy2_6 / VideoModel.lucy2_6), aligned with the JS SDK registry. lucy-latest is unchanged and still mirrors lucy-2.5 in tests and definitions.

Realtime Models.realtime(.lucy2_6) matches lucy-2.5: /v1/stream, 1280×720 @ 30 fps, reference image, and supportedSpeeds: [.fast]. Batch Models.video(.lucy2_6) uses /v1/generate/lucy-2.6 and /v1/jobs/lucy-2.6 at 20 fps. ModelsInputFactory routes it to .videoEdit, and the example app uses lucy edit presets for this model.

Docs and comments (README fast-mode section, Speed on RealtimeConfiguration) now list lucy-2.6. ModelConfigTests cover 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.

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.
@AdirAmsalem
AdirAmsalem merged commit 43db91c into main Oct 25, 2026
2 checks passed
@AdirAmsalem
AdirAmsalem deleted the conductor/lucy-26-ios branch October 25, 2026 09:16
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