elna / app /config.py
David Chu
refactor: use pydantic settings
00d1644 unverified
raw
history blame
215 Bytes
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
google_api_key: str
model_config = SettingsConfigDict(env_file=".env")
settings = Settings() # type: ignore