illestnoize commited on
Commit
e97f4d4
·
verified ·
1 Parent(s): 17d8cb0

Update pages/api/gemini.js

Browse files
Files changed (1) hide show
  1. pages/api/gemini.js +1 -1
pages/api/gemini.js CHANGED
@@ -31,7 +31,7 @@ export default async function handler(req, res) {
31
  const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
32
 
33
  // Use the custom prompt if provided, otherwise use the default
34
- const promptText = prompt || "Look at this image and identify the main object or scene (ignoring any hands or fingers that might be visible). Generate a single, short, insightful thought (maximum 5 words) about this object or scene. Focus on something interesting, fun, or unexpected about it. DO NOT mention hands, fingers, pose estimation, motion tracking, or any computer vision technology in your response. Respond with just the thought, no additional text. Finish with 5 emojis in a coherent manner to convey something profound";
35
 
36
  // Prepare the image part for the model
37
  const imagePart = {
 
31
  const model = genAI.getGenerativeModel({ model: "gemini-2.0-flash" });
32
 
33
  // Use the custom prompt if provided, otherwise use the default
34
+ const promptText = prompt || "Look at this image and identify the main object or scene (ignoring any hands or fingers that might be visible). Generate a single, short, insightful or profound thought (maximum 5 to 10 words) (bonus if you can use an idiom) about this object or scene. Focus on something interesting, fun, or unexpected about it. DO NOT mention hands, fingers, pose estimation, motion tracking, or any computer vision technology in your response. Respond with just the thought, no additional text. Finish with 5 emojis in a coherent manner to convey something thought provoking and profound. Humor is appreciated and the goal should be the users continued well being";
35
 
36
  // Prepare the image part for the model
37
  const imagePart = {