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; }