BerriAI/litellm · error · ValueError
No provider config found for model
Error message
No provider config found for model: {model} What it means
In the Bedrock passthrough transformation, for invoke/converse endpoints LiteLLM resolves a chat response transformer via ProviderConfigManager.get_provider_chat_config with a synthetic 'invoke/<model>' or 'converse/<model>' key. If no provider config class is registered for that provider/model, it raises ValueError. Practically: LiteLLM has no response transformer for the model you sent through the passthrough endpoint.
Solutions
- Upgrade litellm to a release that registers the model's provider config
- Search the ProviderConfigManager registration tables in litellm/llms/bedrock/ for supported providers and use a model with a recognized provider prefix
- Search/file litellm GitHub issues for the model name if support is genuinely missing
Defensive patterns
Strategy: try-catch
Validate before calling
from litellm.litellm_core_utils.get_provider_info import ProviderConfigManager # or the project's canonical import
# smoke-test at startup that the passthrough model resolves a config
try:
ProviderConfigManager.get_provider_chat_config(model=f"invoke/{MODEL_ID}")
except Exception:
raise SystemExit(f"litellm has no invoke config for {MODEL_ID}; upgrade litellm or pick a supported model") Try / catch
try:
result = litellm.completion_via_passthrough(...) # /invoke or /converse path
except ValueError as e:
if "No provider config found for model" in str(e):
# model unsupported by this litellm build: fail over to a known model
result = litellm.completion(model=FALLBACK_MODEL, messages=messages)
else:
raise Prevention
- Pin a litellm version recent enough for your Bedrock model set and re-test on upgrade
- Run a startup canary request per configured model so unsupported models fail at boot, not at traffic time
- Keep a fallback model mapping for models whose configs may lag behind AWS releases
When it happens
Trigger: Calling the Bedrock passthrough /invoke or /converse endpoint with a model whose provider LiteLLM cannot map to a registered chat config: newly released Bedrock models, custom/renamed model ids, or provider integrations not yet present in your litellm version.
Common situations: A new Bedrock model launch before LiteLLM adds its config class, running an older pinned litellm, on-prem gateways exposing unusual model ids.
Related errors
- Bedrock batch embedding currently supports only Amazon…
- Invalid invoke provider
- AgentCore: Failed to read/parse JSON response body
- Amazon Nova Canvas INPAINTING requires either maskPrompt or…
- Amazon Nova Canvas requires a text prompt. Pass a non-empty…
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/e2cb58af82269a91.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/bedrock/passthrough/transformation.py:140
) -> Optional["CostResponseTypes"]:
from litellm import encoding
from litellm.types.utils import LlmProviders, ModelResponse
from litellm.utils import ProviderConfigManager
if "invoke" in endpoint:
chat_config_model = "invoke/" + model
elif "converse" in endpoint:
chat_config_model = "converse/" + model
else:
return None
provider_chat_config: Final = ProviderConfigManager.get_provider_chat_config(
provider=LlmProviders(custom_llm_provider),
model=chat_config_model,
)
if provider_chat_config is None:
raise ValueError(f"No provider config found for model: {model}")
litellm_model_response: Final[ModelResponse] = provider_chat_config.transform_response(
model=model,
messages=[{"role": "user", "content": "no-message-pass-through-endpoint"}],
raw_response=httpx_response,
model_response=ModelResponse(),
logging_obj=logging_obj,
optional_params={},
litellm_params={},
api_key="",
request_data=request_data,
encoding=encoding,
)
return litellm_model_response
def _convert_raw_bytes_to_str_lines(self, raw_bytes: list[bytes]) -> list[str]:
from botocore.eventstream import EventStreamBufferView on GitHub (pinned to 77b7c6c40c)