We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e8a0d0 commit 2155497Copy full SHA for 2155497
balrog/utils.py
@@ -7,7 +7,7 @@
7
from collections import defaultdict
8
from pathlib import Path
9
10
-import google.generativeai as genai
+from google import genai
11
import openai
12
13
@@ -206,7 +206,7 @@ def setup_environment(
206
"""
207
secrets = load_secrets(os.path.join(original_cwd, "SECRETS"))
208
if secrets[gemini_tag]:
209
- genai.configure(api_key=secrets[gemini_tag])
+ os.environ["GEMINI_API_KEY"] = secrets[gemini_tag]
210
if secrets[anthropic_tag]:
211
os.environ["ANTHROPIC_API_KEY"] = secrets[anthropic_tag]
212
if secrets[openai_tag]:
0 commit comments