You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
247 B

import os
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
class Config:
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
if __name__ == "__main__":
print("Your OpenAI Key is:", Config.OPENAI_API_KEY)