fix(canvas): harmonize prompt model defaults for edge insertions

This commit is contained in:
2026-04-08 02:40:23 +02:00
parent 91fdd6c143
commit a8386742bf
3 changed files with 11 additions and 7 deletions

View File

@@ -18,7 +18,7 @@ export const CANVAS_NODE_TEMPLATES = [
label: "Prompt",
width: 320,
height: 220,
defaultData: { prompt: "", model: "", aspectRatio: "1:1" },
defaultData: { prompt: "", model: "google/gemini-2.5-flash-image", aspectRatio: "1:1" },
},
{
type: "video-prompt",

View File

@@ -235,7 +235,11 @@ export const NODE_DEFAULTS: Record<
> = {
image: { width: 280, height: 200, data: {} },
text: { width: 256, height: 120, data: { content: "" } },
prompt: { width: 288, height: 220, data: { prompt: "", aspectRatio: "1:1" } },
prompt: {
width: 288,
height: 220,
data: { prompt: "", model: "google/gemini-2.5-flash-image", aspectRatio: "1:1" },
},
"video-prompt": {
width: 288,
height: 220,