First_agent_template / your_main_file.py
Diego Cabezas
Initial commit
c28dccc
raw
history blame contribute delete
236 Bytes
import os
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
# Access the API key
api_key = os.getenv('OPENAI_API_KEY')
# Use the API key in your application
print(f"Your API key is: {api_key}")