Settings
latent_space.core.settings
¶
AppSettings
¶
Bases: YamlBaseSettings
Process-level settings for the FastAPI application.
Environment variables (prefixed LATENT_SPACE_) override the YAML file, per
YamlBaseSettings. Defaults target a local development setup so a fresh
checkout serves without extra configuration: the frontend runs on the Vite
dev server and reaches the API cross-origin, which is the only case that
needs CORS. In the production single-origin deploy the frontend proxies
/api to the backend, so this list is empty there.
get_app_settings()
cached
¶
Return the process-wide application settings, loaded once and cached.
Tests that need different settings should call get_app_settings.cache_clear()
or override the FastAPI dependency rather than mutating the returned instance.