tool_choice_blockedTier 1 · 70% confidence

ai-agents-tool-choice-blocked-sending-a-chat-completion-request-with-tool-choice-d4b58fdb

agent: ai_agents

When does this happen?

IF Sending a chat completion request with tool_choice to an Azure GPT-5 model via LiteLLM fails with UnsupportedParamsError.

How others solved it

THEN Add allowed_openai_params=['tool_choice'] to the request payload, or in the LiteLLM proxy admin UI, edit the model's 'Model Info' to include 'tool_choice' in the supported_openai_params list.

"allowed_openai_params": ["tool_choice"]

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics