ginipick commited on
Commit
bc4db62
ยท
verified ยท
1 Parent(s): 156ae9a

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 || "์ด ์ด๋ฏธ์ง€๋ฅผ ๋ณด๊ณ  ๋ณด์ผ ์ˆ˜๋„ ์žˆ๋Š” ์†์ด๋‚˜ ์†๊ฐ€๋ฝ์€ ๋ฌด์‹œํ•˜๊ณ  ํ”Œ๋ ˆ์ด์ž‰ ์นด๋“œ๋ฅผ ์ธ์‹ํ•˜์—ฌ ์‹๋ณ„ํ•˜์„ธ์š”. ์‹๋ณ„๋œ ์นด๋“œ ์ •๋ณด๋งŒ ์˜์–ด๋กœ ์ถœ๋ ฅํ•˜์„ธ์š”. ํ˜•์‹์€ 'A Hearts', '10 Diamonds'์ฒ˜๋Ÿผ ์นด๋“œ ๊ฐ’๊ณผ ๋ฌด๋Šฌ๋ฅผ ๊ณต๋ฐฑ์œผ๋กœ ๊ตฌ๋ถ„ํ•ด ํ‘œ๊ธฐํ•˜๋ฉฐ, ์—ฌ๋Ÿฌ ์žฅ์ด๋ฉด ์‰ผํ‘œ๋กœ ๊ตฌ๋ถ„ํ•˜์„ธ์š”. ์ถ”๊ฐ€ ์„ค๋ช…์ด๋‚˜ ๋‹ค๋ฅธ ํ…์ŠคํŠธ๋Š” ์ ˆ๋Œ€ ํฌํ•จํ•˜์ง€ ๋งˆ์„ธ์š”.";
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 || "์ด ์ด๋ฏธ์ง€๋ฅผ ๋ณด๊ณ  (๋ณด์ผ ์ˆ˜๋„ ์žˆ๋Š” ์†์ด๋‚˜ ์†๊ฐ€๋ฝ์€ ๋ฌด์‹œํ•œ ์ฑ„) ์˜ค๋กœ์ง€ playing cards๋งŒ ์‹๋ณ„ํ•˜์„ธ์š”. ์‹๋ณ„๋œ ์นด๋“œ์˜ ์ •ํ™•ํ•œ ์ •๋ณด๋งŒ ์ถœ๋ ฅํ•˜์„ธ์š”(์˜ˆ, A ์ŠคํŽ˜์ด๋“œ, 10 ํ•˜ํŠธ, J ๋‹ค์ด์•„๋ชฌ๋“œ";
35
 
36
  // Prepare the image part for the model
37
  const imagePart = {