Browse Source

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 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 3 months ago
parent
commit
34c6ef34e8
  1. 3
      src/components/nodes/ModelParameters.tsx

3
src/components/nodes/ModelParameters.tsx

@ -84,7 +84,8 @@ function ModelParametersInner({
// Fetch schema when modelId changes // Fetch schema when modelId changes
useEffect(() => { useEffect(() => {
if (!modelId || provider === "gemini") { const isVeoModel = modelId?.startsWith("veo-");
if (!modelId || (provider === "gemini" && !isVeoModel)) {
setSchema([]); setSchema([]);
onInputsLoaded?.([]); onInputsLoaded?.([]);
return; return;

Loading…
Cancel
Save