From 19f5640036f2ec3b825c72b6296145210cb849a7 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Tue, 31 Mar 2026 07:41:33 +1300 Subject: [PATCH] fix: allow Veo model parameters to render in GenerateVideoNode UI The render guard at line 222 blocked all Gemini-provider models from rendering parameters, including Veo models. Hoisted the isVeoModel check to component scope and added the same exception used in the fetch guard so Veo parameters (aspect ratio, duration, resolution) display correctly. Fixes #106 Co-Authored-By: Claude Opus 4.6 --- src/components/nodes/ModelParameters.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/nodes/ModelParameters.tsx b/src/components/nodes/ModelParameters.tsx index 455d59ab..646998ed 100644 --- a/src/components/nodes/ModelParameters.tsx +++ b/src/components/nodes/ModelParameters.tsx @@ -82,9 +82,10 @@ function ModelParametersInner({ // Use stable selector for API keys to prevent unnecessary re-fetches const { replicateApiKey, falApiKey, kieApiKey, wavespeedApiKey } = useProviderApiKeys(); + const isVeoModel = modelId?.startsWith("veo-"); + // Fetch schema when modelId changes useEffect(() => { - const isVeoModel = modelId?.startsWith("veo-"); if (!modelId || (provider === "gemini" && !isVeoModel)) { setSchema([]); onInputsLoaded?.([]); @@ -218,8 +219,8 @@ function ModelParametersInner({ : sortedSchema; }, [sortedSchema, useGrid, colCount]); - // Don't render anything for Gemini or if no model selected - if (provider === "gemini" || !modelId) { + // Don't render anything for Gemini (except Veo) or if no model selected + if ((provider === "gemini" && !isVeoModel) || !modelId) { return null; }