You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle models that throw error when temperature is passed in litellm #923
Need to handle models that don't take a temperature value and throw an error when a temperature value is passed in litellm.
Got this error when trying to run claude-sonnet-5:
❌ Error during LLM judgment: litellm.BadRequestError: AnthropicException - {"type":"error","error":{"type":"invalid_request_error","message":"`temperature` is deprecated for this model."},"request_id":"req_011CcakeToS63TkKDmKr9xc4"}
It seems temperature is deprecated for claude-sonnet-5.
changed the title [-]`temperature` is deprecated for Claude Sonnet 5[/-][+]Handle models that throw error when `temperature` is passed in litellm[/+]on Jul 1, 2026
Activity
[-]`temperature` is deprecated for Claude Sonnet 5[/-][+]Handle models that throw error when `temperature` is passed in litellm[/+]