BerriAI/litellm · error · APIError

ReplicateException - {original_exception}

Error message

ReplicateException - {original_exception}

What it means

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

Source

Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:687

                message=f"ReplicateException - {original_exception.message}",
                model=model,
                llm_provider="replicate",
            )
        elif original_exception.status_code == 429:
            raise RateLimitError(
                message=f"ReplicateException - {original_exception.message}",
                llm_provider="replicate",
                model=model,
                response=getattr(original_exception, "response", None),
            )
        elif original_exception.status_code == 500:
            raise ServiceUnavailableError(
                message=f"ReplicateException - {original_exception.message}",
                llm_provider="replicate",
                model=model,
                response=getattr(original_exception, "response", None),
            )
    raise APIError(
        status_code=500,
        message=f"ReplicateException - {original_exception}",
        llm_provider="replicate",
        model=model,
        request=httpx.Request(
            method="POST",
            url="https://api.replicate.com/v1/deployments",
        ),
    )


def _map_openai_like_exception(
    *,
    model: str,
    original_exception: _ProviderHTTPException,
    custom_llm_provider: str,
    error_str: str,
    exception_type: str,

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Inspect the underlying Replicate exception; check inputs and credentials.

When it happens

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