fix: change gemini model to gemini-1.5-pro
Build and Deploy / build-and-push (push) Successful in 28s

This commit is contained in:
AI Bot
2026-09-02 12:47:18 +05:30
parent 88a9d179a0
commit 2935fed86f
+1 -1
View File
@@ -338,7 +338,7 @@ app.post('/api/sparkplug/extract', authenticate, upload.single('file'), async (r
// Call Gemini to extract prompt // Call Gemini to extract prompt
const genAI = new GoogleGenerativeAI(geminiKey); const genAI = new GoogleGenerativeAI(geminiKey);
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" }); const model = genAI.getGenerativeModel({ model: "gemini-1.5-pro" });
const prompt = ` const prompt = `
You are an expert product designer. Read the following text from a product spec PDF and create a highly detailed, concise visual design prompt for an image generation AI. You are an expert product designer. Read the following text from a product spec PDF and create a highly detailed, concise visual design prompt for an image generation AI.