Skip to content

remove temperature from kwargs if a related error is raised#308

Merged
CodexVeritas merged 2 commits into
mainfrom
no-temp-for-new-claude-models
Jul 2, 2026
Merged

remove temperature from kwargs if a related error is raised#308
CodexVeritas merged 2 commits into
mainfrom
no-temp-for-new-claude-models

Conversation

@colesussmeier

Copy link
Copy Markdown
Contributor

Anthropic no longer accepts temperature for newer models (Fable and Sonnet 5):

litellm.BadRequestError: AnthropicException - "type":"error","error":"type":"invalid_request_error","message":"temperature is deprecated for this model.","request_id":"req_011CcdaYmh8phpL6wJe2Fynr"

Attempt to future proof by dropping the kwarg instead of re-writing custom configs for new models

@CodexVeritas CodexVeritas merged commit e0ee1ff into main Jul 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants