INNER CODE UNIT · Python

get_settings

genome-spy/genome-spy · packages/app-agent/server/app/main.py:88

def get_settings() -> Settings:
    """Return the cached relay settings.

    Loads the settings once per process and reuses the same immutable settings
    object across request handling.
    """
    return load_settings()


@lru_cache
def get_provider() -> BaseProvider:
    """Return the cached provider implementation for current settings."""
    return OpenAIResponsesProvider(get_settings())


@app.get("/health")
async def health() -> dict[str, str]:
    """Return the relay health status."""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…