mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-26 01:39:25 +08:00
[Partner Nodes] fix(KlingTextToVideoNode): validation error for "kling-v2-master" model
Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
parent
ef470b61e4
commit
a3aa254127
9
comfy_api_nodes/apis/__init__.py
generated
9
comfy_api_nodes/apis/__init__.py
generated
@ -1310,13 +1310,6 @@ class KlingTaskStatus(str, Enum):
|
|||||||
failed = 'failed'
|
failed = 'failed'
|
||||||
|
|
||||||
|
|
||||||
class KlingTextToVideoModelName(str, Enum):
|
|
||||||
kling_v1 = 'kling-v1'
|
|
||||||
kling_v1_6 = 'kling-v1-6'
|
|
||||||
kling_v2_1_master = 'kling-v2-1-master'
|
|
||||||
kling_v2_5_turbo = 'kling-v2-5-turbo'
|
|
||||||
|
|
||||||
|
|
||||||
class KlingVideoGenAspectRatio(str, Enum):
|
class KlingVideoGenAspectRatio(str, Enum):
|
||||||
field_16_9 = '16:9'
|
field_16_9 = '16:9'
|
||||||
field_9_16 = '9:16'
|
field_9_16 = '9:16'
|
||||||
@ -5179,7 +5172,7 @@ class KlingText2VideoRequest(BaseModel):
|
|||||||
duration: Optional[KlingVideoGenDuration] = '5'
|
duration: Optional[KlingVideoGenDuration] = '5'
|
||||||
external_task_id: Optional[str] = Field(None, description='Customized Task ID')
|
external_task_id: Optional[str] = Field(None, description='Customized Task ID')
|
||||||
mode: Optional[KlingVideoGenMode] = 'std'
|
mode: Optional[KlingVideoGenMode] = 'std'
|
||||||
model_name: Optional[KlingTextToVideoModelName] = 'kling-v1'
|
model_name: Optional[str] = 'kling-v1'
|
||||||
negative_prompt: Optional[str] = Field(
|
negative_prompt: Optional[str] = Field(
|
||||||
None, description='Negative text prompt', max_length=2500
|
None, description='Negative text prompt', max_length=2500
|
||||||
)
|
)
|
||||||
|
|||||||
@ -436,7 +436,7 @@ async def execute_text2video(
|
|||||||
negative_prompt=negative_prompt if negative_prompt else None,
|
negative_prompt=negative_prompt if negative_prompt else None,
|
||||||
duration=KlingVideoGenDuration(duration),
|
duration=KlingVideoGenDuration(duration),
|
||||||
mode=KlingVideoGenMode(model_mode),
|
mode=KlingVideoGenMode(model_mode),
|
||||||
model_name=KlingVideoGenModelName(model_name),
|
model_name=model_name,
|
||||||
cfg_scale=cfg_scale,
|
cfg_scale=cfg_scale,
|
||||||
aspect_ratio=KlingVideoGenAspectRatio(aspect_ratio),
|
aspect_ratio=KlingVideoGenAspectRatio(aspect_ratio),
|
||||||
camera_control=camera_control,
|
camera_control=camera_control,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user