From f1808ef3150b8b44f992acca096c9a07cb427e79 Mon Sep 17 00:00:00 2001 From: Jedrzej Kosinski Date: Sun, 4 May 2025 04:13:23 -0500 Subject: [PATCH] Make controls input work for Recraft Image to Image node (#120) --- comfy_api_nodes/apis/client.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comfy_api_nodes/apis/client.py b/comfy_api_nodes/apis/client.py index 1e350e0ec..cc135ad0a 100644 --- a/comfy_api_nodes/apis/client.py +++ b/comfy_api_nodes/apis/client.py @@ -250,10 +250,14 @@ class ApiClient: data: Dict[str, Any], files: Dict[str, Any], headers: Optional[Dict[str, str]] = None, + multipart_parser = None, ) -> Dict[str, Any]: if headers and "Content-Type" in headers: del headers["Content-Type"] + if multipart_parser: + data = multipart_parser(data) + return { "data": data, "files": files,