From 34c6ef34e84a3fa5b0cf1b1f1798304c8ba7123d Mon Sep 17 00:00:00 2001 From: shrimbly Date: Tue, 31 Mar 2026 07:26:52 +1300 Subject: [PATCH] fix: allow ModelParameters schema fetch for Veo video models ModelParameters had an early return for all Gemini provider models, skipping the API schema fetch. This was correct for Gemini image models (which have built-in parameters) but prevented Veo video models from loading their aspect ratio, duration, and resolution parameters from the /api/models/[modelId] endpoint. Closes #106 Co-Authored-By: Claude Opus 4.6 --- src/components/nodes/ModelParameters.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/nodes/ModelParameters.tsx b/src/components/nodes/ModelParameters.tsx index 6ca6667c..455d59ab 100644 --- a/src/components/nodes/ModelParameters.tsx +++ b/src/components/nodes/ModelParameters.tsx @@ -84,7 +84,8 @@ function ModelParametersInner({ // Fetch schema when modelId changes useEffect(() => { - if (!modelId || provider === "gemini") { + const isVeoModel = modelId?.startsWith("veo-"); + if (!modelId || (provider === "gemini" && !isVeoModel)) { setSchema([]); onInputsLoaded?.([]); return;