Skip to content

Commit

Permalink
Update entrypoint.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensflinco authored May 11, 2024
1 parent f73b0be commit 74f926a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ def main(
check_required_env_vars()

# Set the Gemini API key
genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
logger.debug(f"api_key: {os.getenv("GEMINI_API_KEY")}")
api_key = os.getenv("GEMINI_API_KEY")
genai.configure(api_key=api_key)
logger.debug(f"api_key: {api_key}")

# Request a code review
chunked_reviews, summarized_review = get_review(
Expand Down

0 comments on commit 74f926a

Please sign in to comment.