Browse Source

Show Gemini parameters when Gemini model is selected

The aspectRatio, resolution, and useGoogleSearch controls were only
shown when isGeminiOnly was true, but that was always false since
fal.ai is always available. Now these controls show based on whether
the currently selected model is a Gemini model.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 6 months ago
parent
commit
bdae8e6db8
  1. 8
      src/components/nodes/GenerateImageNode.tsx

8
src/components/nodes/GenerateImageNode.tsx

@ -831,8 +831,8 @@ export function GenerateImageNode({ id, data, selected }: NodeProps<NanoBananaNo
/>
)}
{/* Aspect ratio and resolution row - only for Gemini-only mode */}
{isGeminiOnly && (
{/* Aspect ratio and resolution row - only for Gemini models */}
{currentProvider === "gemini" && (
<div className="flex gap-1.5 shrink-0">
<select
value={nodeData.aspectRatio}
@ -861,8 +861,8 @@ export function GenerateImageNode({ id, data, selected }: NodeProps<NanoBananaNo
</div>
)}
{/* Google Search toggle - only for Nano Banana Pro in Gemini-only mode */}
{isGeminiOnly && isNanoBananaPro && (
{/* Google Search toggle - only for Nano Banana Pro */}
{currentProvider === "gemini" && isNanoBananaPro && (
<label className="flex items-center gap-1.5 text-[10px] text-neutral-300 shrink-0 cursor-pointer">
<input
type="checkbox"

Loading…
Cancel
Save