diff --git a/api/DTO/movie_start_dto.ts b/api/DTO/movie_start_dto.ts index 72e621a..c0a47bc 100644 --- a/api/DTO/movie_start_dto.ts +++ b/api/DTO/movie_start_dto.ts @@ -349,6 +349,8 @@ export interface CreateMovieProjectV4Request { language: string; /** 画面比例(横/竖屏) */ aspect_ratio: AspectRatioValue; + /** 扩展模式 */ + expansion_mode: boolean; /** 是否是图生 */ is_image_to_video: boolean; /** pcode编码 */ diff --git a/components/pages/create-video/CreateInput/VideoCreationForm.tsx b/components/pages/create-video/CreateInput/VideoCreationForm.tsx index 9310014..053e4ce 100644 --- a/components/pages/create-video/CreateInput/VideoCreationForm.tsx +++ b/components/pages/create-video/CreateInput/VideoCreationForm.tsx @@ -187,12 +187,13 @@ export default function VideoCreationForm() { /** Build request parameters */ const requestParams: CreateMovieProjectV4Request = { script: inputText, - mode: configOptions.expansion_mode ? 'auto' : 'manual', + mode: configOptions.mode, resolution: '720p', language: configOptions.language, aspect_ratio: configOptions.aspect_ratio, + expansion_mode: configOptions.expansion_mode, is_image_to_video: photos.length > 0, - pcode: configOptions.pcode, + pcode: configOptions.pcode === 'portrait' ? '' : configOptions.pcode, }; /** Add character briefs if exists */ diff --git a/components/pages/create-video/CreateInput/config-options.ts b/components/pages/create-video/CreateInput/config-options.ts index fd94b1d..b8c6e8c 100644 --- a/components/pages/create-video/CreateInput/config-options.ts +++ b/components/pages/create-video/CreateInput/config-options.ts @@ -43,14 +43,16 @@ export interface ConfigOptions { videoDuration: VideoDurationValue; aspect_ratio: AspectRatioValue; pcode: PortraitAnimeValue; + mode: "auto" | "manual"; } /** Default configuration */ export const defaultConfig: ConfigOptions = { language: 'english', - expansion_mode: false, + expansion_mode: true, videoDuration: 'unlimited', aspect_ratio: 'VIDEO_ASPECT_RATIO_LANDSCAPE', pcode: 'portrait', + mode: 'auto', };