from pydantic_settings import BaseSettings from functools import lru_cache class Settings(BaseSettings): ollama_url: str = "http://127.0.0.1:11434" ollama_model: str = "moondream" homebox_url: str = "http://127.0.0.1:3100" homebox_token: str = "" class Config: env_file = ".env" env_file_encoding = "utf-8" @lru_cache def get_settings() -> Settings: return Settings()