BerriAI/litellm · error · AuthenticationError

ReplicateException - {original_exception.message}

Error message

ReplicateException - {original_exception.message}

What it means

Error "ReplicateException - {original_exception.message}" thrown in BerriAI/litellm.

Source

Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:647

            response=getattr(original_exception, "response", None),
        )
    elif exception_type == "ModelError":
        raise BadRequestError(
            message=f"ReplicateException - {error_str}",
            model=model,
            llm_provider="replicate",
            response=getattr(original_exception, "response", None),
        )
    elif "Request was throttled" in error_str:
        raise RateLimitError(
            message=f"ReplicateException - {error_str}",
            llm_provider="replicate",
            model=model,
            response=getattr(original_exception, "response", None),
        )
    elif hasattr(original_exception, "status_code"):
        if original_exception.status_code == 401:
            raise AuthenticationError(
                message=f"ReplicateException - {original_exception.message}",
                llm_provider="replicate",
                model=model,
                response=getattr(original_exception, "response", None),
            )
        elif original_exception.status_code == 400 or original_exception.status_code == 413:
            raise BadRequestError(
                message=f"ReplicateException - {original_exception.message}",
                model=model,
                llm_provider="replicate",
                response=getattr(original_exception, "response", None),
            )
        elif original_exception.status_code == 422:
            raise UnprocessableEntityError(
                message=f"ReplicateException - {original_exception.message}",
                model=model,
                llm_provider="replicate",
                response=getattr(original_exception, "response", None),

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Inspect the Replicate error message; check model version and inputs.

When it happens

Trigger: Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:647 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/54f68dcfe852c897. Report an issue: GitHub.