feat: add seed support for image, video, and music generation#101
Draft
feat: add seed support for image, video, and music generation#101
Conversation
- Add seed prop to React components (ImageProps, VideoProps, MusicProps) - Update renderers to pass seed to generate functions - Add seed to MusicModelV3CallOptions and generateMusic - FAL: extend seed support to WAN models in addition to LTX-2 - Higgsfield: pass seed to API for image generation - ElevenLabs: add warning that seed is unsupported for music - Google video model already supports seed
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
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
Adds
seedprop support across all media generation to enable reproducible results.seed?: numberto React components (<Image seed={...}>,<Video seed={...}>,<Music seed={...}>)MusicModelV3CallOptionsto include seed parameterProvider Support
Usage
Files Changed
src/react/types.ts- Add seed to ImageProps, VideoProps, MusicPropssrc/react/renderers/image.ts- Pass seed to generateImagesrc/react/renderers/video.ts- Pass seed to generateVideosrc/react/renderers/music.ts- Pass seed to generateMusicsrc/ai-sdk/music-model.ts- Add seed to MusicModelV3CallOptionssrc/ai-sdk/generate-music.ts- Pass seed through to modelsrc/ai-sdk/providers/fal.ts- Extend video seed support to WAN modelssrc/ai-sdk/providers/higgsfield.ts- Add seed support for Soul imagessrc/ai-sdk/providers/elevenlabs.ts- Add warning for unsupported seed