The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix(Kling Image API Node): do not pass "image_type" when no image (#9271)
Alexander Piskunf4231a80b1b9
diff --git a/comfy_api_nodes/nodes_kling.py b/comfy_api_nodes/nodes_kling.pyindex 9d9eb5628..9d483bb0e 100644--- a/comfy_api_nodes/nodes_kling.py+++ b/comfy_api_nodes/nodes_kling.py@@ -1690,7 +1690,11 @@ class KlingImageGenerationNode(KlingImageGenerationBase):):self.validate_prompt(prompt, negative_prompt)- if image is not None:+ if image is None:+ image_type = None+ elif model_name == KlingImageGenModelName.kling_v1:+ raise ValueError(f"The model {KlingImageGenModelName.kling_v1.value} does not support reference images.")+ else:image = tensor_to_base64_string(image)initial_operation = SynchronousOperation(