Files
ComfyUI/comfy_api_nodes
Hunter Senft-Grupp 370810c8f7 fix: use glob matching for Gemini image MIME types
gemini-3-pro-image-preview nondeterministically returns image/jpeg
instead of image/png. get_image_from_response() hardcoded
get_parts_by_type(response, "image/png"), silently dropping JPEG
responses and falling back to torch.zeros (all-black output).

Add _mime_matches() helper using fnmatch for glob-style MIME matching.
Change get_image_from_response() to request "image/*" so any image
format returned by the API is correctly captured.
2026-02-17 23:56:13 -05:00
..