parent
2d89f4bad2
commit
177ffd2f3f
@ -0,0 +1,11 @@
|
|||||||
|
from dotenv import load_dotenv
|
||||||
|
import os
|
||||||
|
|
||||||
|
# Load the environment variables
|
||||||
|
def load_environment():
|
||||||
|
load_dotenv()
|
||||||
|
# Get the API key from the environment
|
||||||
|
api_key = os.environ.get("OPENAI_API_KEY")
|
||||||
|
|
||||||
|
return api_key, os.environ
|
||||||
|
|
Loading…
Reference in new issue