mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-21 09:05:01 +00:00
new limits on video model
This commit is contained in:
1 parent
a10f36b652
commit
45d08d6f79
2 files changed
+9
-5
No files matched your search
+7
-1
@@ -149,7 +149,12 @@ pub struct OmniGenVideoModelDetails {
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration_seconds_max: Option<u16>,
|
||||
|
||||
|
||||
/// Specific maximum when image references are used,
|
||||
/// eg. Grok limits to 10 seconds in this mode.
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration_seconds_max_with_image_references: Option<u16>,
|
||||
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub duration_seconds_options: Option<Vec<u16>>,
|
||||
|
||||
@@ -204,6 +209,7 @@ impl Default for OmniGenVideoModelDetails {
|
||||
default_quality: None,
|
||||
duration_seconds_min: None,
|
||||
duration_seconds_max: None,
|
||||
duration_seconds_max_with_image_references: None,
|
||||
duration_seconds_options: None,
|
||||
duration_seconds_default: None,
|
||||
batch_size_min: None,
|
||||
|
||||
@@ -27,10 +27,7 @@ fn build_omni_gen_video_models() -> Vec<OmniGenVideoModelDetails> {
|
||||
starting_keyframe_supported: Some(true),
|
||||
ending_keyframe_supported: Some(false),
|
||||
image_references_supported: Some(true),
|
||||
image_references_max: Some(3),
|
||||
audio_references_supported: Some(true),
|
||||
audio_references_max: Some(3),
|
||||
audio_references_max_total_duration_seconds: Some(15),
|
||||
image_references_max: Some(7),
|
||||
//video_references_supported: Some(false),
|
||||
//video_references_max: Some(3),
|
||||
//video_references_max_total_duration_seconds: Some(15),
|
||||
@@ -53,6 +50,7 @@ fn build_omni_gen_video_models() -> Vec<OmniGenVideoModelDetails> {
|
||||
//batch_size_default: Some(1),
|
||||
duration_seconds_min: Some(1),
|
||||
duration_seconds_max: Some(15),
|
||||
duration_seconds_max_with_image_references: Some(10),
|
||||
duration_seconds_default: Some(8),
|
||||
..Default::default()
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user