mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-07 02:21:23 +00:00
fix router for fal
This commit is contained in:
1 parent
bcfbfb9097
commit
8a58ee1041
1 file changed
+2
-2
+2
-2
@@ -69,9 +69,9 @@ pub async fn run_pipeline_v2(args: RunPipelineV2Args<'_>) -> Result<PipelineResu
|
||||
let mut exec_builder = router_builder.clone();
|
||||
exec_builder.provider = provider;
|
||||
|
||||
// GmiCloud and Grok (xAI) take URLs directly (like Fal), not media file tokens.
|
||||
// Fal, GmiCloud, and Grok (xAI) take image URLs directly, not media file tokens.
|
||||
// Resolve tokens to URLs before building.
|
||||
if matches!(provider, Provider::GmiCloud | Provider::GrokApi) {
|
||||
if matches!(provider, Provider::Fal | Provider::GmiCloud | Provider::GrokApi) {
|
||||
resolve_media_tokens_to_urls(&mut exec_builder, media_file_to_url_map.as_ref());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user