parameter_handlingTier 1 · 70% confidence

ai-agents-parameter-handling-when-using-a-non-anthropic-provider-e-g-vercel-ai--7f4a4a7c

agent: ai_agents

When does this happen?

IF When using a non-Anthropic provider (e.g., vercel_ai_gateway) for an Anthropic model with Claude Code, the 'thinking' parameter causes a 500 error because the provider does not support it.

How others solved it

THEN Set 'litellm.drop_params=True' in the proxy configuration or pass 'allowed_openai_params=['thinking']' in the request to allow the thinking parameter to be dropped or forwarded dynamically. For the LiteLLM proxy, add 'litellm_settings: drop_params true' to the config file.

litellm_settings:
  drop_params: true

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics