BerriAI/litellm · error · ValueError
Provider config not found for model: {model} and provider: {
Error message
Provider config not found for model: {model} and provider: {custom_llm_provider} What it means
Error "Provider config not found for model: {model} and provider: {custom_llm_provider}" thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/anthropic/chat/handler.py:362
optional_params.pop("vertex_count_tokens_location", None)
_is_function_call: Final = False
messages = copy.deepcopy(messages)
headers = AnthropicConfig().validate_environment(
api_key=api_key,
headers=headers,
model=model,
messages=messages,
optional_params={**optional_params, "is_vertex_request": is_vertex_request},
litellm_params=litellm_params,
api_base=api_base,
)
config: Final = ProviderConfigManager.get_provider_chat_config(
model=model,
provider=LlmProviders(custom_llm_provider),
)
if config is None:
raise ValueError(f"Provider config not found for model: {model} and provider: {custom_llm_provider}")
data = config.transform_request(
model=model,
messages=messages,
optional_params={**optional_params, "is_vertex_request": is_vertex_request},
litellm_params=litellm_params,
headers=headers,
)
headers, data = update_request_with_filtered_beta(
headers=headers,
request_data=data,
provider=custom_llm_provider,
)
## LOGGING
logging_obj.pre_call(
input=messages,View on GitHub (pinned to 6c2dcb801b)
Solutions
- Use a supported Anthropic model/provider combination or register a provider config.
When it happens
Trigger: Thrown at litellm/llms/anthropic/chat/handler.py:362 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/a34b10d01e8cb360.
Report an issue: GitHub.