Skip to content

[BUG] The model returned the following errors: invalid beta flag #11715

@ZSamuels28

Description

@ZSamuels28

Problem (one or two sentences)

When attempting to use Claude 3 Haiku (anthropic.claude-3-haiku-20240307-v1:0) through AWS Bedrock with Roo Code, requests fail with:

Provider ended the request: Unknown Error: The model returned the following errors: invalid beta flag

I believe the issue is the Claude CLI adds the token-efficient-tools beta header by default (since it's optimized for Claude 3.7 Sonnet, which supports this feature). However, Claude 3 Haiku does not support this beta feature, causing Bedrock to reject the request before it reaches the model.

Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-anthropic-claude-messages-request-response.html

Context (who is affected and when)

All users running Haiku 3

Reproduction steps

  1. On Roo Code (Using Ubuntu) select Haiku 3 as the model with Amazon Bedrock
  2. Test the model
  3. Error

Expected result

Haiku 3 works

Actual result

Haiku 3 throws an error

Variations tried (optional)

No response

App Version

3.50.4

API Provider (optional)

Amazon Bedrock

Model Used (optional)

Claude 3 Haiku

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

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