fix: change gemini model to gemini-1.5-pro
Build and Deploy / build-and-push (push) Successful in 28s
Build and Deploy / build-and-push (push) Successful in 28s
This commit is contained in:
+1
-1
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user