Skip to content

fix: remove unsupported anthropic_beta flag from Bedrock Converse API#11969

Open
ewalsh wants to merge 1 commit intocontinuedev:mainfrom
ewalsh:fix/8297-remove-bedrock-invalid-beta-flag
Open

fix: remove unsupported anthropic_beta flag from Bedrock Converse API#11969
ewalsh wants to merge 1 commit intocontinuedev:mainfrom
ewalsh:fix/8297-remove-bedrock-invalid-beta-flag

Conversation

@ewalsh
Copy link
Copy Markdown

@ewalsh ewalsh commented Mar 30, 2026

The Bedrock provider was unconditionally sending anthropic_beta: ["fine-grained-tool-streaming-2025-05-14"] in additionalModelRequestFields for all Claude models. The Bedrock Converse API does not support Anthropic beta flags, causing all Claude requests to fail with "invalid beta flag".

Fixes #8297

Description
Removed the anthropic_beta field from additionalModelRequestFields in the Bedrock Converse API request builder (core/llm/llms/Bedrock.ts).

The fine-grained-tool-streaming-2025-05-14 beta flag is an Anthropic direct API feature that is not supported by the Bedrock Converse API. Bedrock validates additionalModelRequestFields and rejects unrecognised beta flags, causing all Claude model requests via Bedrock to fail.

Confirmed affected in v1.2.18 and v1.2.21.

AI Code Review
Team members only: AI review runs automatically when PR is opened or marked ready for review

Team members can also trigger a review by commenting @continue-review

Checklist
I've read the contributing guide
The relevant docs, if any, have been updated or created
The relevant tests, if any, have been updated or created
Screen recording or screenshot
Before fix: All Claude requests via Bedrock fail with:

The model returned the following errors: invalid beta flag

Copy
After fix: Claude requests via Bedrock Converse API succeed as expected.

Tests
No new tests added. The fix is a single line removal. Verified manually by invoking Claude models (anthropic.claude-3-haiku-20240307-v1:0, eu.anthropic.claude-sonnet-4-20250514-v1:0) via the Bedrock provider — requests succeed after the change.


Summary by cubic

Removed the unsupported anthropic_beta: ["fine-grained-tool-streaming-2025-05-14"] from Bedrock Converse API additionalModelRequestFields to stop "invalid beta flag" errors and restore Claude requests via Bedrock.

Written for commit b81b419. Summary will update on new commits.

The Bedrock provider was unconditionally sending
`anthropic_beta: ["fine-grained-tool-streaming-2025-05-14"]` in
additionalModelRequestFields for all Claude models. The Bedrock
Converse API does not support Anthropic beta flags, causing all
Claude requests to fail with "invalid beta flag".

Fixes continuedev#8297
@ewalsh ewalsh requested a review from a team as a code owner March 30, 2026 09:54
@ewalsh ewalsh requested review from sestinj and removed request for a team March 30, 2026 09:54
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Amazon Bedrock Invalid Beta Flag Issue

1 participant