From 099cde37b6d7a580ecc551dd8579aacf57b5fc34 Mon Sep 17 00:00:00 2001 From: itsuzef <53057646+itsuzef@users.noreply.github.com> Date: Thu, 23 Apr 2026 01:42:08 -0400 Subject: [PATCH] fix(seedance): correct upload_image_fal call name Lines 219 and 227 imported upload_image_fal from _shared but called the non-existent upload_image_to_fal, raising a NameError whenever image_to_video or reference_to_video used local image paths. --- tools/video/seedance_video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/video/seedance_video.py b/tools/video/seedance_video.py index 2f7d84a..a0135d4 100644 --- a/tools/video/seedance_video.py +++ b/tools/video/seedance_video.py @@ -216,7 +216,7 @@ class SeedanceVideo(BaseTool): payload["image_url"] = inputs["image_url"] elif inputs.get("image_path"): from tools.video._shared import upload_image_fal - payload["image_url"] = upload_image_to_fal(inputs["image_path"]) + payload["image_url"] = upload_image_fal(inputs["image_path"]) if inputs.get("end_image_url"): payload["end_image_url"] = inputs["end_image_url"] @@ -224,7 +224,7 @@ class SeedanceVideo(BaseTool): ref_image_urls = list(inputs.get("reference_image_urls") or []) for local_path in inputs.get("reference_image_paths") or []: from tools.video._shared import upload_image_fal - ref_image_urls.append(upload_image_to_fal(local_path)) + ref_image_urls.append(upload_image_fal(local_path)) # Seedance 2.0 reference-to-video ceilings: 9 images + 3 video + 3 audio. if len(ref_image_urls) > 9: return ToolResult(