[Partner Nodes] fix(GPT Image): make custom_width/custom_height optional

OpenAIGPTImageNodeV2 declared the gpt-image-2 custom size widgets as
required nested inputs, so a prompt that picked a preset size and omitted
them failed validation with required_input_missing. execute() already
reads both with a 1024 default, and the deprecated OpenAIGPTImage1 node
in the same file already marks them optional.
This commit is contained in:
Matt Miller
2026-07-27 23:59:47 -07:00
parent 6e36e12970
commit b4e6b3a91c
2 changed files with 29 additions and 0 deletions

View File

@@ -747,6 +747,7 @@ class OpenAIGPTImageNodeV2(IO.ComfyNode):
max=3840,
step=16,
tooltip="Used only when `size` is 'Custom'. Must be a multiple of 16.",
optional=True,
),
IO.Int.Input(
"custom_height",
@@ -755,6 +756,7 @@ class OpenAIGPTImageNodeV2(IO.ComfyNode):
max=3840,
step=16,
tooltip="Used only when `size` is 'Custom'. Must be a multiple of 16.",
optional=True,
),
IO.Combo.Input(
"background",