INNER CODE UNIT · Python

lifespan

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

async def lifespan(_: FastAPI) -> AsyncIterator[None]:
    """Log the relay startup configuration summary.

    Emits a single startup log line that captures the selected provider, model,
    base URL, and sanitized API-key metadata for debugging deployment issues.
    """
    settings = get_settings()
    provider = get_provider()
    api_key_source = (
        "GENOMESPY_AGENT_API_KEY"
        if os.environ.get("GENOMESPY_AGENT_API_KEY") is not None
        else "default"
    )
    startup_logger.info(
        (
            "GenomeSpy agent server startup: provider=%s base_url=%s "
            "model=%s api_key_source=%s api_key=%s "
            "streaming=%s responses_role_compat=%s timeout_seconds=%s "

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…