BerriAI/litellm · error · NotImplementedError

EmbeddingConfig does not need a response transformation for

Error message

EmbeddingConfig does not need a response transformation for chat models

What it means

Error "EmbeddingConfig does not need a response transformation for chat models" thrown in BerriAI/litellm.

Source

Thrown at litellm/llms/base_llm/embedding/transformation.py:85

        headers: dict,
    ) -> dict:
        raise NotImplementedError("EmbeddingConfig does not need a request transformation for chat models")

    def transform_response(
        self,
        model: str,
        raw_response: httpx.Response,
        model_response: ModelResponse,
        logging_obj: LiteLLMLoggingObj,
        request_data: dict,
        messages: list[AllMessageValues],
        optional_params: dict,
        litellm_params: dict,
        encoding: Any,
        api_key: str | None = None,
        json_mode: bool | None = None,
    ) -> ModelResponse:
        raise NotImplementedError("EmbeddingConfig does not need a response transformation for chat models")

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Use a concrete EmbeddingConfig subclass; the base class does not implement this transformation.

When it happens

Trigger: Thrown at litellm/llms/base_llm/embedding/transformation.py:85 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/8a7eb6194901c84a. Report an issue: GitHub.