diff --git a/crates/api_clients/seedance2pro_client/src/requests/generate_video/generate_video.rs b/crates/api_clients/seedance2pro_client/src/requests/generate_video/generate_video.rs index 60a4d7de02..b99a06b3ea 100644 --- a/crates/api_clients/seedance2pro_client/src/requests/generate_video/generate_video.rs +++ b/crates/api_clients/seedance2pro_client/src/requests/generate_video/generate_video.rs @@ -161,19 +161,13 @@ pub enum KinoviOutputResolution { } impl KinoviOutputResolution { - fn as_api_str(&self) -> &'static str { - match self { - Self::FourEightyP => "480p", - Self::SevenTwentyP => "720p", - Self::TenEightyP => "1080p", - } - } - - /// Returns the string to send, or None if it's the default (720p) which should be omitted. - fn maybe_as_api_str(&self) -> Option<&'static str> { + /// Returns the API string to send, or None for 720p (the default, which is + /// expressed by omitting the field entirely). + pub fn as_api_str(&self) -> Option<&'static str> { match self { + Self::FourEightyP => Some("480p"), Self::SevenTwentyP => None, // Default — omit from request - _ => Some(self.as_api_str()), + Self::TenEightyP => Some("1080p"), } } } @@ -298,7 +292,7 @@ pub async fn generate_video(args: GenerateVideoArgs<'_>) -> Result