from pydantic_settings import BaseSettings | |
class Settings(BaseSettings): | |
"""Loads the dotenv file. Including this is necessary to get | |
pydantic to load a .env file.""" | |
LOG_LEVEL: str = "DEBUG" | |
CONNECTION_STRING: str | |
KEY: str | |
ACCOUNT_NAME: str | |
CONTAINER_NAME: str | |
DB_URI: str | |
AUTH0_DOMAIN: str | |
AUTH0_API_AUDIENCE: str | |
AUTH0_ISSUER: str | |
AUTH0_ALGORITHMS: str | |
APPLICATIONINSIGHTS_CONNECTION_STRING: str | |
REDIS_HOST: str | |
REDIS_PORT: str | |
REDIS_USERNAME: str | |
REDIS_PASSWORD: str | |
REDIS_DB: str | |
OPENAI_KEY: str | |
DOCUMENT_VERIFICATION_ASSISTANT_ID: str | |
class Config: | |
env_file = ".env" | |
env_file_encoding = "utf-8" | |
env = Settings() | |