From d3bc29c738fd70f9ba14c9ac4bd5ae57bfc4d3d4 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Fri, 9 Jan 2026 19:46:50 +1300 Subject: [PATCH] feat(03-01): add SelectedModel type and update NanoBananaNodeData Add SelectedModel interface for multi-provider model selection in image generation nodes. Update NanoBananaNodeData with optional selectedModel field for backward compatibility with existing workflows. Co-Authored-By: Claude Opus 4.5 --- src/types/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/types/index.ts b/src/types/index.ts index 07e9bea1..846e6149 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -142,6 +142,7 @@ export interface NanoBananaNodeData extends BaseNodeData { aspectRatio: AspectRatio; resolution: Resolution; // Only used by Nano Banana Pro model: ModelType; + selectedModel?: SelectedModel; // Multi-provider model selection (optional for backward compat) useGoogleSearch: boolean; // Only available for Nano Banana Pro status: NodeStatus; error: string | null; @@ -301,6 +302,13 @@ export interface NodeGroup { // Provider Types for multi-provider support export type ProviderType = "gemini" | "replicate" | "fal"; +// Selected model for image/video generation nodes +export interface SelectedModel { + provider: ProviderType; + modelId: string; + displayName: string; +} + export interface ProviderConfig { id: ProviderType; name: string;