fix(Kling Image API Node): raise client-side error when kling_v1 is used with reference image

This commit is contained in:
bigcat88 2025-08-11 08:05:50 +03:00
parent db8dd4d7d3
commit 14ec2342de
No known key found for this signature in database
GPG Key ID: 1F0BF0EC3CF22721

View File

@ -1692,6 +1692,8 @@ class KlingImageGenerationNode(KlingImageGenerationBase):
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)