BerriAI/litellm · error · CustomLLMError

Not implemented yet!

Error message

Not implemented yet!

What it means

Sentinel stub on the CustomLLM base class: a custom provider class did not override the completion method, so the framework has no custom handler to dispatch the chat request to and fails with a generic not-implemented error.

Solutions

  1. Implement the method in your CustomLLM subclass; the base class raises this for unimplemented hooks.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at litellm/llms/custom_llm.py:64 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/52caed56877eabfb. Report an issue: GitHub.

Appendix: source

Thrown at litellm/llms/custom_llm.py:64

        self,
        model: str,
        messages: list,
        api_base: str,
        custom_prompt_dict: dict,
        model_response: ModelResponse,
        print_verbose: Callable,
        encoding,
        api_key,
        logging_obj,
        optional_params: dict,
        acompletion=None,
        litellm_params=None,
        logger_fn=None,
        headers={},
        timeout: float | httpx.Timeout | None = None,
        client: HTTPHandler | None = None,
    ) -> Union[ModelResponse, "CustomStreamWrapper"]:
        raise CustomLLMError(status_code=500, message="Not implemented yet!")

    def streaming(
        self,
        model: str,
        messages: list,
        api_base: str,
        custom_prompt_dict: dict,
        model_response: ModelResponse,
        print_verbose: Callable,
        encoding,
        api_key,
        logging_obj,
        optional_params: dict,
        acompletion=None,
        litellm_params=None,
        logger_fn=None,
        headers={},
        timeout: float | httpx.Timeout | None = None,

View on GitHub (pinned to 77b7c6c40c)