@@ -647,7 +647,7 @@ def define_schema(cls) -> comfy_io.Schema:
647
647
category = "api node/video/Kling" ,
648
648
description = "Allows specifying configuration options for Kling Camera Controls and motion control effects." ,
649
649
inputs = [
650
- comfy_io .Combo .Input ("camera_control_type" , options = [ i . value for i in KlingCameraControlType ] ),
650
+ comfy_io .Combo .Input ("camera_control_type" , options = KlingCameraControlType ),
651
651
comfy_io .Float .Input (
652
652
"horizontal_movement" ,
653
653
default = 0.0 ,
@@ -772,7 +772,7 @@ def define_schema(cls) -> comfy_io.Schema:
772
772
comfy_io .Float .Input ("cfg_scale" , default = 1.0 , min = 0.0 , max = 1.0 ),
773
773
comfy_io .Combo .Input (
774
774
"aspect_ratio" ,
775
- options = [ i . value for i in KlingVideoGenAspectRatio ] ,
775
+ options = KlingVideoGenAspectRatio ,
776
776
default = "16:9" ,
777
777
),
778
778
comfy_io .Combo .Input (
@@ -840,7 +840,7 @@ def define_schema(cls) -> comfy_io.Schema:
840
840
comfy_io .Float .Input ("cfg_scale" , default = 0.75 , min = 0.0 , max = 1.0 ),
841
841
comfy_io .Combo .Input (
842
842
"aspect_ratio" ,
843
- options = [ i . value for i in KlingVideoGenAspectRatio ] ,
843
+ options = KlingVideoGenAspectRatio ,
844
844
default = "16:9" ,
845
845
),
846
846
comfy_io .Custom ("CAMERA_CONTROL" ).Input (
@@ -903,17 +903,17 @@ def define_schema(cls) -> comfy_io.Schema:
903
903
comfy_io .String .Input ("negative_prompt" , multiline = True , tooltip = "Negative text prompt" ),
904
904
comfy_io .Combo .Input (
905
905
"model_name" ,
906
- options = [ i . value for i in KlingVideoGenModelName ] ,
906
+ options = KlingVideoGenModelName ,
907
907
default = "kling-v2-master" ,
908
908
),
909
909
comfy_io .Float .Input ("cfg_scale" , default = 0.8 , min = 0.0 , max = 1.0 ),
910
- comfy_io .Combo .Input ("mode" , options = [ i . value for i in KlingVideoGenMode ] , default = " std" ),
910
+ comfy_io .Combo .Input ("mode" , options = KlingVideoGenMode , default = KlingVideoGenMode . std ),
911
911
comfy_io .Combo .Input (
912
912
"aspect_ratio" ,
913
- options = [ i . value for i in KlingVideoGenAspectRatio ] ,
914
- default = "16:9" ,
913
+ options = KlingVideoGenAspectRatio ,
914
+ default = KlingVideoGenAspectRatio . field_16_9 ,
915
915
),
916
- comfy_io .Combo .Input ("duration" , options = [ i . value for i in KlingVideoGenDuration ] , default = "5" ),
916
+ comfy_io .Combo .Input ("duration" , options = KlingVideoGenDuration , default = KlingVideoGenDuration . field_5 ),
917
917
],
918
918
outputs = [
919
919
comfy_io .Video .Output (),
@@ -984,8 +984,8 @@ def define_schema(cls) -> comfy_io.Schema:
984
984
comfy_io .Float .Input ("cfg_scale" , default = 0.75 , min = 0.0 , max = 1.0 ),
985
985
comfy_io .Combo .Input (
986
986
"aspect_ratio" ,
987
- options = [ i . value for i in KlingVideoGenAspectRatio ] ,
988
- default = "16:9" ,
987
+ options = KlingVideoGenAspectRatio ,
988
+ default = KlingVideoGenAspectRatio . field_16_9 ,
989
989
),
990
990
comfy_io .Custom ("CAMERA_CONTROL" ).Input (
991
991
"camera_control" ,
0 commit comments