feat: canonical model names, lucy-2.1, and deprecation warnings#45
feat: canonical model names, lucy-2.1, and deprecation warnings#45AdirAmsalem merged 3 commits intomainfrom
Conversation
Add canonical model names (lucy-2, lucy-clip, lucy-restyle-2, lucy-image-2, live-avatar, etc.) to match the updated API naming convention. Add new models lucy-2.1 (realtime + batch) and lucy-2.1-vton (realtime). Deprecated model names still work but now emit a DeprecationWarning guiding users to migrate.
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 a651208. Configure here.
| width=1280, | ||
| height=720, | ||
| input_schema=BaseModel, | ||
| ), |
There was a problem hiding this comment.
Overlapping model names bypass queue's category validation
Low Severity
Model names lucy-2, lucy-2.1, and lucy-restyle-2 now exist in both _MODELS["realtime"] and _MODELS["video"]. The queue client validates models via model.name not in _MODELS["video"], so a realtime model definition (with input_schema=BaseModel) would pass this check. Pydantic v2's BaseModel silently ignores extra fields by default (extra='ignore'), so the user's prompt, seed, and other non-file inputs would be silently dropped during validation, sending an incomplete request to the server. Previously, model names were unique across categories, making this impossible.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit a651208. Configure here.
Add lucy-latest, lucy-vton-latest, lucy-restyle-latest, lucy-clip-latest, lucy-motion-latest, and lucy-image-latest convenience aliases that always point to the current latest version of each model family. These are resolved server-side, so the SDK passes them through with no deprecation warnings.


Summary
Adds canonical model names across the SDK to match the updated API naming convention, adds new models, and introduces deprecation warnings for old names.
lucy-2,lucy-clip,lucy-restyle-2,lucy-image-2,live-avatar, etc. replace the old naming convention (lucy_2_rt,mirage_v2,lucy-pro-v2v, etc.)lucy-2.1(realtime + video) andlucy-2.1-vton(realtime)DeprecationWarningguiding users to migratereference_imageinputUsage
Note
Medium Risk
Medium risk because it updates the model registry (names, schemas, and
url_paths) and adds deprecation warning behavior that could affect runtime requests and user integrations relying on old model identifiers.Overview
Updates the SDK to prefer new canonical model names (e.g.,
lucy-image-2,lucy-clip,lucy-restyle-2,live-avatar) and adds new realtime/video models (lucy-2.1,lucy-2.1-vton) plus "latest" aliases (e.g.,lucy-latest).Introduces one-time
DeprecationWarnings for legacy model names via a centralized alias map, while keeping deprecated identifiers usable. Video model definitions are refreshed to use/v1/jobs/...endpoints, andVideoToVideoInputgains optionalreference_imagesupport.Docs, examples, playground, token examples, UI, and tests are updated to use the canonical names and to accept both
live_avatarandlive-avatarwhere relevant.Reviewed by Cursor Bugbot for commit 5a0c5e5. Bugbot is set up for automated code reviews on this repo. Configure here.