From 3e7a27cb7a8ca8b4804b9e63bfbff60e25ceadc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Mon, 20 Oct 2025 20:48:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E5=88=9B=E5=BB=BA=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=9A=E5=89=A7=E6=9C=AC=E6=89=A9=E5=B1=95=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/DTO/movie_start_dto.ts | 2 ++ .../pages/create-video/CreateInput/VideoCreationForm.tsx | 5 +++-- components/pages/create-video/CreateInput/config-options.ts | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) 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', };