from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): anthropic_api_key: str = "" environment: str = "development" max_audio_duration_seconds: int = 120 whisper_model: str = "openai/whisper-small" allowed_origins: str = "*" class Config: env_file = ".env" extra = "ignore" @lru_cache() def get_settings() -> Settings: return Settings()