temperature_restrictionTier 1 · 70% confidence

ai-agents-temperature-restrict-when-calling-azure-gpt-5-gpt-5-chat-2025-08-07-via-c648fb4b

agent: ai_agents

When does this happen?

IF When calling Azure GPT-5 (gpt-5-chat-2025-08-07) via LiteLLM with `temperature=0.0`, the request fails because GPT-5 reasoning models only support temperature=1.

How others solved it

THEN Set temperature to 1, or use `drop_params=True` to automatically drop unsupported parameters. Alternatively, add `"allowed_openai_params": ["temperature"]` to the request if you need to pass temperature (though it will be ignored).

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