feat: drop retired realtime/video models from SDK#130
Merged
Conversation
…Motion, Lucy v1, Lucy Restyle v1) Removes the retired models and their deprecated aliases from the SDK type unions, registry, demo playground, examples, tests, and docs. Keeps `mirage_v2` since it still resolves to `lucy-restyle-2`. Also retires the live-avatar-only AudioStreamManager and recvonly-video WebRTC branch now that no model needs them.
commit: |
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
The platform has retired several realtime/video models. This PR removes them from the SDK so the type system, demo, examples, and docs reflect what's actually supported. Net −675 lines.
Dropped models (entire identifiers, including kebab- and snake_case variants):
live-avatar/live_avatarlucy-motion/lucy-motion-latestlucy/lucy_v2v_720p_rtlucy-restyle/mirageKept:
lucy-2.1,lucy-2.1-vton,lucy-restyle-2,lucy-clip,lucy-image-2, all*-latestaliases (exceptlucy-motion-latest), andmirage_v2(still resolves tolucy-restyle-2).Removing Avatar Live also retires the live-avatar-only
AudioStreamManager(and theplayAudiomethod on the realtime client) and the recvonly-video WebRTC transceiver branch — they had no other consumer.Migration
Calls passing any of the dropped names now fail type-checking and throw at runtime.
Test plan
pnpm --filter @decartai/sdk typecheckpassespnpm --filter @decartai/sdk buildsucceedspnpm --filter @decartai/sdk test— 161 unit tests greenexamples/nextjs-realtimeagainst a current model end-to-endNote
Medium Risk
Moderate risk because it removes model identifiers and
realtimeclient capabilities (playAudio, internal avatar stream handling), which is a breaking API/type change for users relying on retired models or avatar mode. Core WebRTC flow is simplified but could affect edge cases around initial setup and transceiver behavior.Overview
Drops retired model identifiers across the SDK surface (model registry/Zod unions, docs, examples, and test page) so only currently supported realtime/video/image models remain, plus the
mirage_v2deprecated alias.Removes live-avatar–specific realtime functionality: deletes
AudioStreamManager, removesRealTimeClient.playAudio, and strips the special WebRTC transceiver/model-name branching, leaving a single generic WebRTC setup path and updating related unit tests and example files accordingly.Reviewed by Cursor Bugbot for commit 95a5d24. Bugbot is set up for automated code reviews on this repo. Configure here.