feat: Enhance Sora2 video generation parameters#680
Open
feat: Enhance Sora2 video generation parameters#680
Conversation
- Replace orientation with aspect_ratio for both sora-2 and sora-2-pro - Add resolution selection (4K/1080p/720p/480p) for all Sora2 models - Add watermark toggle for both models - Add private toggle for both models - Add enhance_prompt field (auto-enabled by default) - Add HD Mode toggle for sora-2-pro (exclusive) - Extend duration options for sora-2-pro (5/10/15/20/25s) - Update default duration from 15s to 5s for better user experience - Add i18n translations for all new parameters (zh-CN and en-US)
|
@inoribea is attempting to deploy a commit to the dooy's projects Team on Vercel. A member of the Team first needs to authorize it. |
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
Significantly enhance Sora2 video generation models (sora-2 and sora-2-pro) with more precise parameter controls and new features for better video quality and customization.
Changes
Model Configuration (src/views/video/tpl.ts)
sora-2 (Standard version) enhancements:
orientation(portrait/landscape) withaspect_ratio(16:9 / 9:16) for more precise controlresolutionselection: 4K / 1080p / 720p / 480pdurationoptions: 5s / 10s / 15s (default changed from 15s to 5s)watermarktoggle (default: off)privatetoggle (default: off)enhance_promptfield (auto-enabled by default)sora-2-pro (Pro version) enhancements:
durationoptions: 5s / 10s / 15s / 20s / 25s (up to 25 seconds)Internationalization
src/locales/zh-CN.ts - Added Chinese translations:
sora2about: "Sora2 相关"sora2server: "Sora2 接口地址"sora2keyPlaceholder: "Sora2 的 API Key, 可不填"sora2key: "Sora2 Key"hdMode: "高清模式"watermark: "水印"private: "私密"enhancePrompt: "提示词增强"sora2Desc: Comprehensive descriptionsrc/locales/en-US.ts - Added English translations for all above keys
Key Improvements
Technical Details