Claude::buildPayload() adds temperature to the request whenever one is set, either in the provider's plugin configuration or through the per-call temperature option (for example, lms_ai passes temperature: 0). Claude Opus 4.7 and later, and all Claude 5.x models (e.g. claude-sonnet-5-5, claude-haiku-5-5), reject the field, so every such request fails with AI request failed: Client error: POST https://api.anthropic.com/v1/messages resulted in a 400 Bad Request response.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

graber created an issue. See original summary.

  • graber committed 1aa80d27 on 1.0.x
    #3633740: Stop sending temperature to Claude.
    
graber’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.