mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-15 22:56:49 +08:00
fix(Kling Image API Node): do not pass "image_type" when no image
This commit is contained in:
parent
735bb4bdb1
commit
db8dd4d7d3
@ -1690,7 +1690,9 @@ class KlingImageGenerationNode(KlingImageGenerationBase):
|
|||||||
):
|
):
|
||||||
self.validate_prompt(prompt, negative_prompt)
|
self.validate_prompt(prompt, negative_prompt)
|
||||||
|
|
||||||
if image is not None:
|
if image is None:
|
||||||
|
image_type = None
|
||||||
|
else:
|
||||||
image = tensor_to_base64_string(image)
|
image = tensor_to_base64_string(image)
|
||||||
|
|
||||||
initial_operation = SynchronousOperation(
|
initial_operation = SynchronousOperation(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user