Skip to content

Commit d0a972f

Browse files
committed
pass api_key to genai.configure
1 parent b62cbfb commit d0a972f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operate/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def initialize_google(self):
6969
"[Config][initialize_google] no cached google_api_key, try to get from env."
7070
)
7171
api_key = os.getenv("GOOGLE_API_KEY")
72-
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"), transport="rest")
72+
genai.configure(api_key=api_key, transport="rest")
7373
model = genai.GenerativeModel("gemini-pro-vision")
7474

7575
return model

0 commit comments

Comments
 (0)