Skip to content

[BUG] OpenAI Compatible - Claude Opus 4.7 has temperature deprecated #12162

@marty-a11y

Description

@marty-a11y

Problem (one or two sentences)

Any attempt to use claude-opus-4-7 through the OpenAI Compatible provider results in an error about temperature being deprecated.

Context (who is affected and when)

Happens all the time for every prompt in every scenario.

Reproduction steps

  1. Set up OpenAI compatible with claude-opus-4-7
  2. Send any prompt.

Expected result

No error from the API

Actual result

An error occurs

Variations tried (optional)

No response

App Version

3.52.1

API Provider (optional)

OpenAI Compatible

Model Used (optional)

claude-opus-4-7

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Error: `OpenAI completion error: 400 litellm.BadRequestError: BedrockException - {\"message\":\"The model returned the following errors: {\\\"type\\\":\\\"error\\\",\\\"request_id\\\":\\\"req_p2msrdcxdgpww2tqhgwewtvomrkhc2l2pe5xdananom42vw6tqja\\\",\\\"error\\\":{\\\"type\\\":\\\"invalid_request_error\\\",\\\"message\\\":\\\"`temperature` is deprecated for this model.\\\"}}\"}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions