mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-18 03:50:03 +08:00
fix(Kling Image API Node): raise client-side error when kling_v1 is used with reference image
This commit is contained in:
parent
db8dd4d7d3
commit
14ec2342de
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user