Skip to content

Commit

Permalink
Merge pull request AntonOsika#592 from AntonOsika/pbharrin-patch-1
Browse files Browse the repository at this point in the history
Fix missing OPENAI_API_KEY
  • Loading branch information
pbharrin authored Aug 15, 2023
2 parents 65d7a9b + 19a7986 commit 48950c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gpt_engineer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from pathlib import Path

import openai
import typer

from dotenv import load_dotenv
Expand All @@ -19,6 +20,7 @@
def load_env_if_needed():
if os.getenv("OPENAI_API_KEY") is None:
load_dotenv()
openai.api_key = os.getenv("OPENAI_API_KEY")


@app.command()
Expand Down

0 comments on commit 48950c2

Please sign in to comment.