BerriAI/litellm · error · AuthenticationError

ReplicateException - {error_str}

Error message

ReplicateException - {error_str}

What it means

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

Source

Thrown at litellm/litellm_core_utils/exception_mapping_utils.py:618

                message=f"AnthropicException Timeout - {error_str}",
                model=model,
                llm_provider="anthropic",
                exception_status_code=original_exception.status_code,
            )


def _map_replicate_exception(
    *,
    model: str,
    original_exception: _ProviderHTTPException,
    custom_llm_provider: str,
    error_str: str,
    exception_type: str,
    exception_provider: str,
    extra_information: str,
) -> None:
    if "Incorrect authentication token" in error_str:
        raise AuthenticationError(
            message=f"ReplicateException - {error_str}",
            llm_provider="replicate",
            model=model,
            response=getattr(original_exception, "response", None),
        )
    elif "input is too long" in error_str:
        raise ContextWindowExceededError(
            message=f"ReplicateException - {error_str}",
            model=model,
            llm_provider="replicate",
            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),

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:618 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/1fb0990d68f9be5f. Report an issue: GitHub.