BerriAI/litellm · error · ValueError
Interactions API not supported for
Error message
Interactions API not supported for: {custom_llm_provider} What it means
The Interactions API router resolved a provider (defaulting to gemini) for which no interactions-api config/handler is registered, so the get-interaction operation is not supported for it in this build.
Solutions
- Use a provider that supports the Interactions API, or call the standard chat/completions route for this provider.
- Check the provider name passed as custom_llm_provider for typos.
Defensive patterns
Strategy: validation
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@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/a4f18723633de386.
Report an issue: GitHub.
Appendix: 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 77b7c6c40c)