huchiahsi commited on
Commit
0099c0a
·
verified ·
1 Parent(s): 1f82c3d

Update gemini.py

Browse files
Files changed (1) hide show
  1. gemini.py +2 -2
gemini.py CHANGED
@@ -7,8 +7,8 @@ from google import genai
7
  from google.genai import types
8
 
9
  # 設定 Gemini API 金鑰
10
- GOOGLE_API_KEY = os.environ.get("GOOGLE_API_KEY")
11
- client = genai.Client(api_key=GOOGLE_API_KEY)
12
 
13
  # 設定圖片儲存目錄
14
  STATIC_IMAGE_PATH = "static/images"
 
7
  from google.genai import types
8
 
9
  # 設定 Gemini API 金鑰
10
+ GOOGLE_API_KEY = os.environ.get("GEMINI_API_KEY")
11
+ client = genai.Client(api_key=GEMINI_API_KEY)
12
 
13
  # 設定圖片儲存目錄
14
  STATIC_IMAGE_PATH = "static/images"