Skip to content

Commit 2155497

Browse files
fix import
1 parent 8e8a0d0 commit 2155497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

balrog/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from collections import defaultdict
88
from pathlib import Path
99

10-
import google.generativeai as genai
10+
from google import genai
1111
import openai
1212

1313

@@ -206,7 +206,7 @@ def setup_environment(
206206
"""
207207
secrets = load_secrets(os.path.join(original_cwd, "SECRETS"))
208208
if secrets[gemini_tag]:
209-
genai.configure(api_key=secrets[gemini_tag])
209+
os.environ["GEMINI_API_KEY"] = secrets[gemini_tag]
210210
if secrets[anthropic_tag]:
211211
os.environ["ANTHROPIC_API_KEY"] = secrets[anthropic_tag]
212212
if secrets[openai_tag]:

0 commit comments

Comments
 (0)