Skip to content

Commit 48d0bdb

Browse files
committed
Fix: Revert Gemini 2.5 Prompts to Legacy Logic
1 parent 7450bd1 commit 48d0bdb

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

stage-right-ai/src/lib/prompt-engine.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,26 +91,26 @@ export function buildStagingPrompt(userPrompt: string, roomType: string, style:
9191
`;
9292
}
9393

94-
// --- V2: GEMINI 2.5 FLASH (The "Production Worker") ---
94+
// --- V2: GEMINI 2.5 FLASH (The "Production Worker" - LEGACY MODE) ---
95+
// Reverted to simple, proven prompt structure to avoid over-constraint.
9596
return `
96-
TASK: Inpaint 3D photorealistic ${exteriorMode ? "landscaping and outdoor furniture" : "furniture"} into the empty space.
97+
Role: Expert Interior Designer.
98+
Task: Virtually stage this photo with photorealistic furniture.
99+
Room Type: ${roomType}
100+
Design Style: ${selectedStyle}
97101
98-
PERSPECTIVE ANCHOR:
99-
- Align objects to the existing ${exteriorMode ? "ground/terrain" : "floor plane"}.
100-
- Match the camera's perspective.
101-
- Shadows must match existing shadows in the photo.
102-
103-
AESTHETIC: ${selectedStyle}
104-
105-
LAYOUT INSTRUCTIONS:
106-
${exteriorMode ? getV2ExteriorLayout(roomType) : getV2InteriorLayout(roomType)}
102+
Instructions:
103+
- Place furniture to showcase the room's best features.
104+
- Ensure all items are scaled correctly to the room.
105+
- Match lighting, shadows, and perspective of the original photo perfectly.
106+
- ${exteriorMode ? "Focus on landscaping and outdoor furniture." : "Focus on appropriate furniture layout for this room type."}
107107
108108
${userPrompt ? `USER OVERRIDE: ${userPrompt}` : ""}
109109
110-
STRICT CONSTRAINTS:
111-
- The ${exteriorMode ? "house architecture and driveway" : "room shell"} is FROZEN. Do not modify.
112-
- Do not cover the camera lens.
113-
- Maintain realistic scale.
110+
Constraints:
111+
- Do not change structural elements (walls, windows, floors).
112+
- Do not cover the foreground or camera lens.
113+
- Keep the room looking spacious.
114114
`;
115115
}
116116

9.91 KB
Binary file not shown.

0 commit comments

Comments
 (0)