BerriAI/litellm · error · ValueError

Interactions API not supported for: {custom_llm_provider}

Error message

Interactions API not supported for: {custom_llm_provider}

What it means

Error "Interactions API not supported for: {custom_llm_provider}" thrown in BerriAI/litellm.

Source

Thrown at litellm/interactions/main.py:416

    **kwargs,
) -> InteractionsAPIResponse | Coroutine[Any, Any, InteractionsAPIResponse]:
    """Sync: Get an interaction by its ID."""
    local_vars: Final = locals()
    custom_llm_provider = custom_llm_provider or "gemini"

    try:
        litellm_logging_obj: Final[LiteLLMLoggingObj] = kwargs.get("litellm_logging_obj")
        litellm_call_id: Final[str | None] = kwargs.get("litellm_call_id", None)
        _is_async: Final = kwargs.pop("aget_interaction", False) is True

        litellm_params: Final = GenericLiteLLMParams(**kwargs)

        interactions_api_config: Final = get_provider_interactions_api_config(
            provider=custom_llm_provider,
        )

        if interactions_api_config is None:
            raise ValueError(f"Interactions API not supported for: {custom_llm_provider}")

        litellm_logging_obj.update_from_kwargs(
            kwargs=kwargs,
            model=None,
            optional_params={"interaction_id": interaction_id},
            litellm_params={"litellm_call_id": litellm_call_id},
            custom_llm_provider=custom_llm_provider,
        )

        return interactions_http_handler.get_interaction(
            interaction_id=interaction_id,
            interactions_api_config=interactions_api_config,
            custom_llm_provider=custom_llm_provider,
            litellm_params=litellm_params,
            logging_obj=litellm_logging_obj,
            extra_headers=extra_headers,
            timeout=timeout,
            _is_async=_is_async,

View on GitHub (pinned to 6c2dcb801b)

Solutions

  1. Use a provider that supports the Interactions API.

When it happens

Trigger: Thrown at litellm/interactions/main.py:416 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/a4f18723633de386. Report an issue: GitHub.