From 96eb568aafc39dc51878985ca38f99bd2f54757a Mon Sep 17 00:00:00 2001 From: Hanashi Date: Sat, 8 Aug 2026 14:27:18 -0400 Subject: [PATCH] undo bundling --- .../by_type/minimax_video_models.rs | 105 +++++++++++++----- 1 file changed, 80 insertions(+), 25 deletions(-) diff --git a/crates/service/web/storyteller_web/src/configs/omni_gen/video_models/by_type/minimax_video_models.rs b/crates/service/web/storyteller_web/src/configs/omni_gen/video_models/by_type/minimax_video_models.rs index 5e7aa12af4..5be8aa8a6a 100644 --- a/crates/service/web/storyteller_web/src/configs/omni_gen/video_models/by_type/minimax_video_models.rs +++ b/crates/service/web/storyteller_web/src/configs/omni_gen/video_models/by_type/minimax_video_models.rs @@ -9,32 +9,9 @@ pub fn minimax_video_models() -> Vec { let mut models = Vec::new(); models.push(OmniGenVideoModelDetails { - model: CommonVideoModel::MinimaxH3, - full_name: Some("MiniMax H3".to_string()), - ..minimax_h3_shared_details() - }); - - models.push(OmniGenVideoModelDetails { - model: CommonVideoModel::MinimaxH3Turbo, - full_name: Some("MiniMax H3 Turbo".to_string()), - ..minimax_h3_shared_details() - }); - - models.push(OmniGenVideoModelDetails { - model: CommonVideoModel::MinimaxH3Ultra, - full_name: Some("MiniMax H3 Ultra".to_string()), - ..minimax_h3_shared_details() - }); - - models -} - -/// Capabilities shared by the MiniMax H3 family (Turbo and Ultra are the same -/// underlying model at different priority tiers). -fn minimax_h3_shared_details() -> OmniGenVideoModelDetails { - OmniGenVideoModelDetails { model: CommonVideoModel::MinimaxH3, model_creator: Some(ModelCreator::Hailuo), + full_name: Some("MiniMax H3".to_string()), text_prompt_supported: Some(true), text_prompt_max_length: Some(7000), starting_keyframe_supported: Some(true), @@ -67,5 +44,83 @@ fn minimax_h3_shared_details() -> OmniGenVideoModelDetails { duration_seconds_max: Some(15), duration_seconds_default: Some(5), ..Default::default() - } + }); + + models.push(OmniGenVideoModelDetails { + model: CommonVideoModel::MinimaxH3Turbo, + model_creator: Some(ModelCreator::Hailuo), + full_name: Some("MiniMax H3 Turbo".to_string()), + text_prompt_supported: Some(true), + text_prompt_max_length: Some(7000), + starting_keyframe_supported: Some(true), + ending_keyframe_supported: Some(true), + image_references_supported: Some(true), + image_references_max: Some(9), + video_references_supported: Some(true), + video_references_max: Some(3), + video_references_max_total_duration_seconds: Some(15), + audio_references_supported: Some(true), + audio_references_max: Some(3), + audio_references_max_total_duration_seconds: Some(15), + aspect_ratio_options: Some(vec![ + CommonAspectRatio::WideTwentyOneByNine, + CommonAspectRatio::WideSixteenByNine, + CommonAspectRatio::WideFourByThree, + CommonAspectRatio::Square, + CommonAspectRatio::TallThreeByFour, + CommonAspectRatio::TallNineBySixteen, + ]), + aspect_ratio_default: Some(CommonAspectRatio::WideSixteenByNine), + // The model renders 768P or 2K; 720p and below land on 768P, 1080p and + // above land on 2K. + resolution_options: Some(vec![ + CommonResolution::SevenTwentyP, + CommonResolution::TwoK, + ]), + resolution_default: Some(CommonResolution::TwoK), + duration_seconds_min: Some(5), + duration_seconds_max: Some(15), + duration_seconds_default: Some(5), + ..Default::default() + }); + + models.push(OmniGenVideoModelDetails { + model: CommonVideoModel::MinimaxH3Ultra, + model_creator: Some(ModelCreator::Hailuo), + full_name: Some("MiniMax H3 Ultra".to_string()), + text_prompt_supported: Some(true), + text_prompt_max_length: Some(7000), + starting_keyframe_supported: Some(true), + ending_keyframe_supported: Some(true), + image_references_supported: Some(true), + image_references_max: Some(9), + video_references_supported: Some(true), + video_references_max: Some(3), + video_references_max_total_duration_seconds: Some(15), + audio_references_supported: Some(true), + audio_references_max: Some(3), + audio_references_max_total_duration_seconds: Some(15), + aspect_ratio_options: Some(vec![ + CommonAspectRatio::WideTwentyOneByNine, + CommonAspectRatio::WideSixteenByNine, + CommonAspectRatio::WideFourByThree, + CommonAspectRatio::Square, + CommonAspectRatio::TallThreeByFour, + CommonAspectRatio::TallNineBySixteen, + ]), + aspect_ratio_default: Some(CommonAspectRatio::WideSixteenByNine), + // The model renders 768P or 2K; 720p and below land on 768P, 1080p and + // above land on 2K. + resolution_options: Some(vec![ + CommonResolution::SevenTwentyP, + CommonResolution::TwoK, + ]), + resolution_default: Some(CommonResolution::TwoK), + duration_seconds_min: Some(5), + duration_seconds_max: Some(15), + duration_seconds_default: Some(5), + ..Default::default() + }); + + models }