BerriAI/litellm · error · ValueError

Unknown endpoint: {endpoint_name}

Error message

Unknown endpoint: {endpoint_name}

What it means

Error "Unknown endpoint: {endpoint_name}" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/custom_httpx/container_handler.py:208

            **kwargs,
        )

    def _sync_handle(
        self,
        endpoint_name: str,
        container_provider_config: "BaseContainerConfig",
        litellm_params: GenericLiteLLMParams,
        logging_obj: "LiteLLMLoggingObj",
        extra_headers: dict[str, Any] | None = None,
        extra_query: dict[str, Any] | None = None,
        timeout: float | httpx.Timeout = 600,
        client: HTTPHandler | AsyncHTTPHandler | None = None,
        **kwargs,
    ) -> Any:
        """Synchronous request handler."""
        endpoint_config: Final = _get_endpoint_config(endpoint_name)
        if not endpoint_config:
            raise ValueError(f"Unknown endpoint: {endpoint_name}")

        # Get HTTP client
        if client is None or not isinstance(client, HTTPHandler):
            http_client = _get_httpx_client(params={"ssl_verify": litellm_params.get("ssl_verify", None)})
        else:
            http_client = client

        # Build request
        headers = container_provider_config.validate_environment(
            headers=extra_headers or {},
            api_key=litellm_params.get("api_key", None),
        )
        if extra_headers:
            headers.update(extra_headers)

        api_base: Final = container_provider_config.get_complete_url(
            api_base=litellm_params.get("api_base", None),
            litellm_params=dict(litellm_params),

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Use a known container endpoint name.

When it happens

Trigger: Thrown at litellm/llms/custom_httpx/container_handler.py:208 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15). Data as JSON: /api/errors/a32c1ebe13af8e3a. Report an issue: GitHub.