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.
 
 

13 lines
361 B

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