{"record":{"id":"a34b10d01e8cb360","repo":"BerriAI/litellm","slug":"provider-config-not-found-for-model-model-and-p","errorCode":null,"errorMessage":"Provider config not found for model: {model} and provider: {custom_llm_provider}","messagePattern":"Provider config not found for model: (.+?) and provider: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/llms/anthropic/chat/handler.py","lineNumber":362,"sourceCode":"        optional_params.pop(\"vertex_count_tokens_location\", None)\n        _is_function_call: Final = False\n        messages = copy.deepcopy(messages)\n        headers = AnthropicConfig().validate_environment(\n            api_key=api_key,\n            headers=headers,\n            model=model,\n            messages=messages,\n            optional_params={**optional_params, \"is_vertex_request\": is_vertex_request},\n            litellm_params=litellm_params,\n            api_base=api_base,\n        )\n\n        config: Final = ProviderConfigManager.get_provider_chat_config(\n            model=model,\n            provider=LlmProviders(custom_llm_provider),\n        )\n        if config is None:\n            raise ValueError(f\"Provider config not found for model: {model} and provider: {custom_llm_provider}\")\n\n        data = config.transform_request(\n            model=model,\n            messages=messages,\n            optional_params={**optional_params, \"is_vertex_request\": is_vertex_request},\n            litellm_params=litellm_params,\n            headers=headers,\n        )\n\n        headers, data = update_request_with_filtered_beta(\n            headers=headers,\n            request_data=data,\n            provider=custom_llm_provider,\n        )\n\n        ## LOGGING\n        logging_obj.pre_call(\n            input=messages,","sourceCodeStart":344,"sourceCodeEnd":380,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/anthropic/chat/handler.py#L344-L380","documentation":"Error \"Provider config not found for model: {model} and provider: {custom_llm_provider}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/anthropic/chat/handler.py:362 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported Anthropic model/provider combination or register a provider config."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}