Skip to content

[BUG] claude-opus-4-7 / claude-opus-4-8 fail because sends deprecated temperature parameter #432

@MadCatPX

Description

@MadCatPX

Describe the bug

Zoo Code fails when using the model claude-opus-4-8 through an OpenAI-compatible provider.

The request is rejected with the following validation error:

An error occurred (ValidationException) when calling the ConverseStream operation:
The model returned the following errors:
`temperature` is deprecated for this model.

It appears that Zoo Code may still be sending the temperature parameter when using claude-opus-4-8 through the OpenAI-compatible provider. However, this model no longer accepts the temperature field, so the parameter likely needs to be omitted entirely from the request.

The same OpenAI-compatible provider configuration works with claude-opus-4-6, so the provider configuration, API key, and network connection appear to be valid.

To Reproduce

Steps to reproduce the behavior:

  1. Open VSCode with Zoo Code installed.
  2. Configure an OpenAI-compatible provider.
  3. Select the model claude-opus-4-8.
  4. Open Code mode.
  5. Send a simple message, for example: 你好
  6. The request fails immediately with the error: temperature is deprecated for this model.

Expected behavior

Zoo Code should send the request successfully and receive a normal response from claude-opus-4-8 through the OpenAI-compatible provider.

If claude-opus-4-8 does not support temperature, Zoo Code should omit the temperature field from the request entirely instead of sending it with any value.

Screenshots

Not applicable.

Video

Not applicable.

What version of zoo are you running

3.56.0

Additional context

Error payload:

{
  "error": {
    "timestamp": "2026-06-01T10:36:21.904Z",
    "version": "3.56.0",
    "provider": "openai",
    "model": "claude-opus-4-8",
    "details": "An error occurred (ValidationException) when calling the ConverseStream operation: The model returned the following errors: `temperature` is deprecated for this model."
  }
}

Environment:

OS: Windows
VSCode extension: Zoo Code
Zoo Code version: 3.56.0
Mode: Code
Provider type: OpenAI-compatible
Provider shown in error: openai
Model: claude-opus-4-8
Error operation: ConverseStream

Comparison test:

claude-opus-4-6  works with the same provider configuration
claude-opus-4-8  fails with: `temperature` is deprecated for this model

Possible cause:

Zoo Code may be passing the deprecated temperature parameter to claude-opus-4-8 when using an OpenAI-compatible provider. For this model, the client likely needs to remove the temperature field entirely from the request body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions