Change compatibility settings

This commit is contained in:
qnsh
2026-11-03 13:55:47 +08:00
parent c2f00b7e3f
commit 6eb66cb018
+1 -2
View File
@@ -537,8 +537,7 @@ class OpenAIImageAPI(io.ComfyNode):
# Scale reference image down to <= 2048x2048 if needed
scaled_img = downscale_image_tensor(single_img, total_pixels=2048 * 2048)
img_bytes = cls._tensor_to_png_bytes(scaled_img)
field_name = "image" if len(flat_images) == 1 else "image[]"
files.append((field_name, (f"image_{i}.png", img_bytes, "image/png")))
files.append(("image", (f"image_{i}.png", img_bytes, "image/png")))
# Process mask if provided
if mask is not None: