fix(veo): reject 4K resolution for veo-3.0 models in Veo3VideoGenerationNode

The tooltip on the resolution input states that 4K is not available for
veo-3.1-lite or veo-3.0 models, but the execute guard only rejected the
lite combination. Selecting 4K with veo-3.0-generate-001 or
veo-3.0-fast-generate-001 would fall through and hit the upstream API
with an invalid request.

Broaden the guard to match the documented behavior and update the error
message accordingly.
This commit is contained in:
Matt Miller 2026-04-21 19:31:45 -07:00
parent 43a1263b60
commit 65eb54a4aa

View File

@ -393,8 +393,8 @@ class Veo3VideoGenerationNode(IO.ComfyNode):
model="veo-3.0-generate-001", model="veo-3.0-generate-001",
generate_audio=False, generate_audio=False,
): ):
if "lite" in model and resolution == "4k": if resolution == "4k" and ("lite" in model or "3.0" in model):
raise Exception("4K resolution is not supported by the veo-3.1-lite model.") raise Exception("4K resolution is not supported by the veo-3.1-lite or veo-3.0 models.")
model = MODELS_MAP[model] model = MODELS_MAP[model]