BerriAI/litellm · error · ValueError

Container provider config not found for

Error message

Container provider config not found for: {resolved_custom_llm_provider}

What it means

The container-endpoint factory resolved custom_llm_provider (after decoding any LiteLLM-managed container ID) to a provider that has no registered container config in ProviderConfigManager, so LiteLLM cannot route the container operation.

Solutions

  1. Use a provider that supports container operations (check the litellm container docs for the supported list).
  2. Verify the provider prefix in your model string is spelled correctly.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at litellm/containers/endpoint_factory.py:99 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/750be2e59d76417d. Report an issue: GitHub.

Appendix: source

Thrown at litellm/containers/endpoint_factory.py:99

            litellm_params = GenericLiteLLMParams(**kwargs)
            # Strip LiteLLM-managed container IDs before calling the provider API
            # (OpenAI enforces max length 64 on container_id).
            if "container_id" in kwargs and isinstance(kwargs["container_id"], str):
                (
                    kwargs["container_id"],
                    resolved_custom_llm_provider,
                    litellm_params,
                ) = decode_managed_container_id_for_request(
                    container_id=kwargs["container_id"],
                    custom_llm_provider=resolved_custom_llm_provider,
                    litellm_params=litellm_params,
                )
            container_provider_config: BaseContainerConfig | None = ProviderConfigManager.get_provider_container_config(
                provider=litellm.LlmProviders(resolved_custom_llm_provider),
            )

            if container_provider_config is None:
                raise ValueError(f"Container provider config not found for: {resolved_custom_llm_provider}")

            # Build optional params for logging
            optional_params: Final = {k: kwargs.get(k) for k in path_params if k in kwargs}

            # Pre-call logging
            litellm_logging_obj.update_from_kwargs(
                kwargs=kwargs,
                model="",
                optional_params=optional_params,
                litellm_params={"litellm_call_id": litellm_call_id},
                custom_llm_provider=resolved_custom_llm_provider,
            )

            # Use generic handler
            return generic_container_handler.handle(
                endpoint_name=endpoint_name,
                container_provider_config=container_provider_config,
                litellm_params=litellm_params,

View on GitHub (pinned to 77b7c6c40c)