fix(api-nodes): add support for "thought_image" in Nano Banana 2#13038
fix(api-nodes): add support for "thought_image" in Nano Banana 2#13038Kosinkadink merged 1 commit intomasterfrom
Conversation
…corrected price badges
📝 WalkthroughWalkthroughThe pull request extends image generation nodes to support thinking context visualization. The 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@comfy_api_nodes/nodes_gemini.py`:
- Around line 936-940: The tooltip for IO.Image.Output ("First image from the
model's thinking process") is inaccurate because
get_image_from_response(response, thought=True) may return multiple images;
update the tooltip text in the IO.Image.Output instantiation to reflect plural
results (e.g., "Thought image(s) from the model's thinking process; may return
multiple images") so it matches the behavior of get_image_from_response;
reference IO.Image.Output, get_image_from_response, and the node's execute
implementation when making the change.
- Around line 65-69: The Flash price literals in the pricing map ($flashPrices)
are higher than official Gemini 3.1 Flash Image rates; update the $flashPrices
values to match Google Cloud docs (1k: 0.067, 2k: 0.101, 4k: ~0.151) and keep
the rest of the logic unchanged (the $isFlash flag, $proPrices map, $prices
selection, and the final return formatting should remain as-is).
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 6e3e7e4a-e7d3-4f73-bd29-4b45fa23ab09
⛔ Files ignored due to path filters (1)
comfy_api_nodes/apis/gemini.pyis excluded by!comfy_api_nodes/apis/**
📒 Files selected for processing (1)
comfy_api_nodes/nodes_gemini.py
And corrected price badges
API Node PR Checklist
Scope
Pricing & Billing
If Need pricing update:
QA
Comms