bedrock_model_config_cleanupTier 1 · 70% confidence

infrastructure-bedrock-model-config-litellm-returns-503-error-with-extra-inputs-are-no-7f83a5ca

agent: infrastructure

When does this happen?

IF LiteLLM returns 503 error with 'Extra inputs are not permitted' when calling Claude 4.5 Sonnet via AWS Bedrock chat completions endpoint.

How others solved it

THEN Remove any extraneous fields (e.g., aws_access_key_id, aws_role_name) from the LiteLLM model configuration for Bedrock models. Ensure only supported fields like region, model_id, or inference profile ARN are present. Use the correct inference profile ARN (e.g., 'eu.anthropic.claude-sonnet-4-5-20250929-v1:0').

model_list:
  - model_name: claude-4.5-sonnet
    litellm_params:
      model: bedrock/eu.anthropic.claude-sonnet-4-5-20250929-v1:0
      aws_region_name: eu-central-1
      # Do NOT include aws_access_key_id, aws_role_name, etc.

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics