feat(pixelle): 加 serde_yaml + Pixelle config 路径配置项

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
boos
2026-06-18 11:43:55 +08:00
parent 284cf84a47
commit 96b8d2c399
3 changed files with 35 additions and 0 deletions
+14
View File
@@ -98,6 +98,10 @@ pub struct PixelleVideoConfig {
pub video_fps: i64,
pub poll_interval_secs: u64,
pub timeout_secs: u64,
#[serde(default = "default_pixelle_config_path")]
pub config_path: String,
#[serde(default = "default_pixelle_compose_dir")]
pub compose_dir: String,
}
#[derive(Debug, Deserialize, Clone)]
@@ -165,6 +169,14 @@ fn default_pixelle_backend_provider() -> String {
"comfy".to_string()
}
fn default_pixelle_config_path() -> String {
"/opt/Pixelle-Video/config.yaml".to_string()
}
fn default_pixelle_compose_dir() -> String {
"/opt/Pixelle-Video".to_string()
}
fn default_workflow_points_cost() -> f64 {
10.0
}
@@ -217,6 +229,8 @@ impl Default for PixelleVideoConfig {
video_fps: 30,
poll_interval_secs: 5,
timeout_secs: 900,
config_path: default_pixelle_config_path(),
compose_dir: default_pixelle_compose_dir(),
}
}
}