From 748e5eca2e12f86973dfdc704134a611d2a1bb9d Mon Sep 17 00:00:00 2001 From: genz27 Date: Fri, 17 Apr 2026 17:37:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(model):=20=E7=A7=BB=E9=99=A4=20veo=202.1=20?= =?UTF-8?q?=E5=92=8C=202.0=20=E6=A8=A1=E5=9E=8B=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ---- src/core/model_resolver.py | 16 ------- src/services/generation_handler.py | 72 ------------------------------ static/test.html | 4 -- 4 files changed, 100 deletions(-) diff --git a/README.md b/README.md index 98be886..b91ea0c 100644 --- a/README.md +++ b/README.md @@ -174,10 +174,6 @@ python main.py |---------|---------|--------| | `veo_3_1_t2v_fast_portrait` | 文生视频 | 竖屏 | | `veo_3_1_t2v_fast_landscape` | 文生视频 | 横屏 | -| `veo_2_1_fast_d_15_t2v_portrait` | 文生视频 | 竖屏 | -| `veo_2_1_fast_d_15_t2v_landscape` | 文生视频 | 横屏 | -| `veo_2_0_t2v_portrait` | 文生视频 | 竖屏 | -| `veo_2_0_t2v_landscape` | 文生视频 | 横屏 | | `veo_3_1_t2v_fast_portrait_ultra` | 文生视频 | 竖屏 | | `veo_3_1_t2v_fast_ultra` | 文生视频 | 横屏 | | `veo_3_1_t2v_fast_portrait_ultra_relaxed` | 文生视频 | 竖屏 | @@ -200,10 +196,6 @@ python main.py |---------|---------|--------| | `veo_3_1_i2v_s_fast_portrait_fl` | 图生视频 | 竖屏 | | `veo_3_1_i2v_s_fast_fl` | 图生视频 | 横屏 | -| `veo_2_1_fast_d_15_i2v_portrait` | 图生视频 | 竖屏 | -| `veo_2_1_fast_d_15_i2v_landscape` | 图生视频 | 横屏 | -| `veo_2_0_i2v_portrait` | 图生视频 | 竖屏 | -| `veo_2_0_i2v_landscape` | 图生视频 | 横屏 | | `veo_3_1_i2v_s_fast_portrait_ultra_fl` | 图生视频 | 竖屏 | | `veo_3_1_i2v_s_fast_ultra_fl` | 图生视频 | 横屏 | | `veo_3_1_i2v_s_fast_portrait_ultra_relaxed` | 图生视频 | 竖屏 | diff --git a/src/core/model_resolver.py b/src/core/model_resolver.py index 84f15e1..558cfa1 100644 --- a/src/core/model_resolver.py +++ b/src/core/model_resolver.py @@ -130,14 +130,6 @@ VIDEO_BASE_MODELS = { "landscape": "veo_3_1_t2v_fast_landscape", "portrait": "veo_3_1_t2v_fast_portrait", }, - "veo_2_1_fast_d_15_t2v": { - "landscape": "veo_2_1_fast_d_15_t2v_landscape", - "portrait": "veo_2_1_fast_d_15_t2v_portrait", - }, - "veo_2_0_t2v": { - "landscape": "veo_2_0_t2v_landscape", - "portrait": "veo_2_0_t2v_portrait", - }, "veo_3_1_t2v_fast_ultra": { "landscape": "veo_3_1_t2v_fast_ultra", "portrait": "veo_3_1_t2v_fast_portrait_ultra", @@ -159,14 +151,6 @@ VIDEO_BASE_MODELS = { "landscape": "veo_3_1_i2v_s_fast_fl", "portrait": "veo_3_1_i2v_s_fast_portrait_fl", }, - "veo_2_1_fast_d_15_i2v": { - "landscape": "veo_2_1_fast_d_15_i2v_landscape", - "portrait": "veo_2_1_fast_d_15_i2v_portrait", - }, - "veo_2_0_i2v": { - "landscape": "veo_2_0_i2v_landscape", - "portrait": "veo_2_0_i2v_portrait", - }, "veo_3_1_i2v_s_fast_ultra_fl": { "landscape": "veo_3_1_i2v_s_fast_ultra_fl", "portrait": "veo_3_1_i2v_s_fast_portrait_ultra_fl", diff --git a/src/services/generation_handler.py b/src/services/generation_handler.py index a96f7ad..509f0b6 100644 --- a/src/services/generation_handler.py +++ b/src/services/generation_handler.py @@ -244,38 +244,6 @@ MODEL_CONFIG = { "supports_images": False }, - # veo_2_1_fast_d_15_t2v (需要新增横竖屏) - "veo_2_1_fast_d_15_t2v_portrait": { - "type": "video", - "video_type": "t2v", - "model_key": "veo_2_1_fast_d_15_t2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_PORTRAIT", - "supports_images": False - }, - "veo_2_1_fast_d_15_t2v_landscape": { - "type": "video", - "video_type": "t2v", - "model_key": "veo_2_1_fast_d_15_t2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_LANDSCAPE", - "supports_images": False - }, - - # veo_2_0_t2v (需要新增横竖屏) - "veo_2_0_t2v_portrait": { - "type": "video", - "video_type": "t2v", - "model_key": "veo_2_0_t2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_PORTRAIT", - "supports_images": False - }, - "veo_2_0_t2v_landscape": { - "type": "video", - "video_type": "t2v", - "model_key": "veo_2_0_t2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_LANDSCAPE", - "supports_images": False - }, - # veo_3_1_t2v_fast_ultra (横竖屏) "veo_3_1_t2v_fast_portrait_ultra": { "type": "video", @@ -366,46 +334,6 @@ MODEL_CONFIG = { "max_images": 2 }, - # veo_2_1_fast_d_15_i2v (需要新增横竖屏) - "veo_2_1_fast_d_15_i2v_portrait": { - "type": "video", - "video_type": "i2v", - "model_key": "veo_2_1_fast_d_15_i2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_PORTRAIT", - "supports_images": True, - "min_images": 1, - "max_images": 2 - }, - "veo_2_1_fast_d_15_i2v_landscape": { - "type": "video", - "video_type": "i2v", - "model_key": "veo_2_1_fast_d_15_i2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_LANDSCAPE", - "supports_images": True, - "min_images": 1, - "max_images": 2 - }, - - # veo_2_0_i2v (需要新增横竖屏) - "veo_2_0_i2v_portrait": { - "type": "video", - "video_type": "i2v", - "model_key": "veo_2_0_i2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_PORTRAIT", - "supports_images": True, - "min_images": 1, - "max_images": 2 - }, - "veo_2_0_i2v_landscape": { - "type": "video", - "video_type": "i2v", - "model_key": "veo_2_0_i2v", - "aspect_ratio": "VIDEO_ASPECT_RATIO_LANDSCAPE", - "supports_images": True, - "min_images": 1, - "max_images": 2 - }, - # veo_3_1_i2v_s_fast_ultra (横竖屏) "veo_3_1_i2v_s_fast_portrait_ultra_fl": { "type": "video", diff --git a/static/test.html b/static/test.html index 5949758..42939d9 100644 --- a/static/test.html +++ b/static/test.html @@ -200,10 +200,6 @@ const FALLBACK_MODELS = { "veo_3_1_r2v_fast": "Video generation (alias) - supports landscape/portrait via generationConfig", "veo_3_1_r2v_fast_ultra": "Video generation (alias) - supports landscape/portrait via generationConfig", "veo_3_1_r2v_fast_ultra_relaxed": "Video generation (alias) - supports landscape/portrait via generationConfig", - "veo_2_1_fast_d_15_t2v": "Video generation (alias) - supports landscape/portrait via generationConfig", - "veo_2_0_t2v": "Video generation (alias) - supports landscape/portrait via generationConfig", - "veo_2_1_fast_d_15_i2v": "Video generation (alias) - supports landscape/portrait via generationConfig", - "veo_2_0_i2v": "Video generation (alias) - supports landscape/portrait via generationConfig", "veo_3_1_upsampler_1080p": "Video upsample - 1080p", "veo_3_1_upsampler_4k": "Video upsample - 4k", };