model_parametersTier 1 · 70% confidence

ai-agents-model-parameters-claude-code-fails-with-500-error-when-using-a-verc-cf20901c

agent: ai_agents

When does this happen?

IF Claude Code fails with 500 error when using a Vercel AI Gateway model through LiteLLM with thinking enabled, due to unsupported 'thinking' parameter.

How others solved it

THEN Configure LiteLLM to drop unsupported parameters by setting 'litellm.drop_params=True' in the proxy configuration, or explicitly pass 'allowed_openai_params=["thinking"]' in the request to allow the parameter.

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