This commit is contained in:
Brandon Thomas committed 2026-02-22 20:00:32 +07:00
1 parent 2a90699382
commit c39d28b5b3
3 files changed
+7 -6

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ name = "artcraft_router"
path = "src/lib.rs"
[dependencies]
# Workspace hack (faster compile times)
# cargo-hakari workspace hack (faster compile times)
workspace-build-acceleration.workspace = true
# Internal
@@ -8,13 +8,13 @@ pub enum CommonVideoModel {
#[serde(rename = "grok_video")]
GrokVideo,
#[serde(rename = "kling_1.6_pro")]
#[serde(rename = "kling_1p6_pro")]
Kling16Pro,
#[serde(rename = "kling_2.1_pro")]
#[serde(rename = "kling_2p1_pro")]
Kling21Pro,
#[serde(rename = "kling_2.1_master")]
#[serde(rename = "kling_2p1_master")]
Kling21Master,
#[serde(rename = "kling_2p5_turbo_pro")]
@@ -23,7 +23,7 @@ pub enum CommonVideoModel {
#[serde(rename = "kling_2p6_pro")]
Kling2p6Pro,
#[serde(rename = "seedance_1.0_lite")]
#[serde(rename = "seedance_1p0_lite")]
Seedance10Lite,
#[serde(rename = "seedance_2p0")]
@@ -30,7 +30,8 @@ pub async fn generate_video_artcraft_seedance2p0(
api_host: &ApiHost,
creds: Option<&StorytellerCredentialSet>,
) -> Result<GenerateVideoResponse, ArtcraftRouterError> {
let uuid_idempotency_token = Uuid::new_v4().to_string();
let uuid_idempotency_token = Uuid::new_v4().to_string(); // TODO: Make this an optional top-level arg
let aspect_ratio = map_aspect_ratio(args.aspect_ratio);
let request = Seedance2p0MultiFunctionVideoGenRequest {