Skip to content

Commit

Permalink
fix: use default auth if no service account provided
Browse files Browse the repository at this point in the history
  • Loading branch information
rorre committed Jun 2, 2024
1 parent 4a4cee5 commit cf017c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cefies/internal/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
service_account_path = os.getenv("SERVICE_ACCOUNT_PATH")
if service_account_path:
cred = service_account.Credentials.from_service_account_file(service_account_path)
else:
raise ValueError("invalid google service account path")
genai.configure(credentials=cred)

genai.configure(credentials=cred)
llm = genai.GenerativeModel(model_name="gemini-pro")

0 comments on commit cf017c4

Please sign in to comment.