Browse Source

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 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 6 months ago
parent
commit
d3bc29c738
  1. 8
      src/types/index.ts

8
src/types/index.ts

@ -142,6 +142,7 @@ export interface NanoBananaNodeData extends BaseNodeData {
aspectRatio: AspectRatio; aspectRatio: AspectRatio;
resolution: Resolution; // Only used by Nano Banana Pro resolution: Resolution; // Only used by Nano Banana Pro
model: ModelType; model: ModelType;
selectedModel?: SelectedModel; // Multi-provider model selection (optional for backward compat)
useGoogleSearch: boolean; // Only available for Nano Banana Pro useGoogleSearch: boolean; // Only available for Nano Banana Pro
status: NodeStatus; status: NodeStatus;
error: string | null; error: string | null;
@ -301,6 +302,13 @@ export interface NodeGroup {
// Provider Types for multi-provider support // Provider Types for multi-provider support
export type ProviderType = "gemini" | "replicate" | "fal"; 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 { export interface ProviderConfig {
id: ProviderType; id: ProviderType;
name: string; name: string;

Loading…
Cancel
Save