acl-api / app /config.py
ivykopal's picture
fix: update .gitignore to include notes.md, work/, and anthology-data/
8e63209
Raw
History Blame Contribute Delete
469 Bytes
"""Environment-driven settings for the API service."""
from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
hf_repo_id: str
hf_token: str
embedding_base_url: str
embedding_api_key: str
data_dir: str = "./data"
@lru_cache
def get_settings() -> Settings:
return Settings()