Remove kling-v2 from Kling Image Generation node (#15676)

This commit is contained in:
Alexander Piskun
2026-08-17 09:37:50 +04:00
committed by GitHub
parent 0696f61dce
commit 784462cbbd

View File

@@ -1866,7 +1866,7 @@ class KlingImageGenerationNode(IO.ComfyNode):
tooltip="Subject reference similarity",
advanced=True,
),
IO.Combo.Input("model_name", options=["kling-v3", "kling-v2"]),
IO.Combo.Input("model_name", options=["kling-v3"]),
IO.Combo.Input(
"aspect_ratio",
options=[i.value for i in KlingImageGenAspectRatio],
@@ -1902,13 +1902,8 @@ class KlingImageGenerationNode(IO.ComfyNode):
],
is_api_node=True,
price_badge=IO.PriceBadge(
depends_on=IO.PriceBadgeDepends(widgets=["model_name", "n"]),
expr="""
(
$base := $contains(widgets.model_name,"kling-v3") ? 0.028 : 0.014;
{"type":"usd","usd": $base * widgets.n}
)
""",
depends_on=IO.PriceBadgeDepends(widgets=["n"]),
expr="""{"type":"usd","usd": 0.028 * widgets.n}""",
),
)