continue icon indicating copy to clipboard operation
continue copied to clipboard

Amazon Bedrock Invalid Beta Flag Issue

Open gcwngo opened this issue 3 months ago • 7 comments

Before submitting your bug report

Relevant environment info

- OS: Windows
- Continue version: 1.2.9
- IDE version: Visual Studio Code 1.105.0
- Model: 
- config:
  
      "provider": "bedrock",
      "model": "anthropic.claude-3-7-sonnet-20250219-v1:0",
      "region": "us-gov-west-1",
  
  OR link to agent in Continue hub:

Description

Image

Getting this invalid beta flag issue when using Continue in Bedrock GovCloud (Claude 3.7 Sonnet). Not sure if Continue is trying to use feature not available in Bedrock, and/or more specifically in the GovCloud regions, ex. us-gov-west-1

Rolling back to previous release versions seems to be the only workaround at the moment, would greatly appreciate help and guidance.

Thanks!

To reproduce

Latest versions of Continue and Visual Studio Code

config.yaml:

name: AWS Bedrock - Configurations version: 0.0.1 schema: v1 models:

  • name: AWS Bedrock - Claude 3.7 Sonnet provider: bedrock model: arn:aws-us-gov:bedrock:us-gov-west-1::foundation-model/anthropic.claude-3-7-sonnet-20250219-v1:0 env: region: us-gov-west-1 profile: bedrock roles:
    • chat
    • edit
    • apply
    • summarize context:
  • provider: codebase
  • provider: code
  • provider: open
  • provider: problems
  • provider: currentFile
  • provider: docs
  • provider: diff
  • provider: folder
  • provider: terminal rules:
  • Act as an expert software developer that can write code that is clean, efficient, and well-documented as well as write unit tests for the code proposed
  • Give concise responses
  • Always annotate functions with their parameter and return types

Log output

ERR [Extension Host] Error handling webview message: { "msg": { "messageId": "6fe0a19e-3650-46b3-a890-6ed4010ac7ce", "messageType": "llm/streamChat", "data": { "completionOptions": { "reasoning": false }, "title": "AWS Bedrock - Claude 3.7 Sonnet", "messages": [ { "role": "system", "content": "<important_rules>\n You are in chat mode.\n\n If the user asks to make changes to files offer that they can use the Apply Button on the code block, or switch to Agent Mode to make the suggested updates automatically.\n If needed concisely explain to the user they can switch to agent mode using the Mode Selector dropdown and provide no other details.\n\n Always include the language and file name in the info string when you write code blocks.\n If you are editing "src/main.py" for example, your code block should start with 'python src/main.py'\n\n When addressing code modification requests, present a concise code snippet that\n emphasizes only the necessary changes and uses abbreviated placeholders for\n unmodified sections. For example:\n\n language /path/to/file\n // ... existing code ...\n\n {{ modified code here }}\n\n // ... existing code ...\n\n {{ another modification }}\n\n // ... rest of code ...\n \n\n In existing files, you should always restate the function or class that the snippet belongs to:\n\n language /path/to/file\n // ... existing code ...\n\n function exampleFunction() {\n // ... existing code ...\n\n {{ modified code here }}\n\n // ... rest of function ...\n }\n\n // ... rest of code ...\n ```\n\n Since users have access to their complete file, they prefer reading only the\n relevant modifications. It's perfectly acceptable to omit unmodified portions\n at the beginning, middle, or end of files using these "lazy" comments. Only\n provide the complete file when explicitly requested. Include a concise explanation\n of changes unless the user specifically asks for code only.\n\n</important_rules>\n\nAct as an expert software developer that can write code that is clean, efficient, and well-documented as well as write unit tests for the code proposed\n\nGive concise responses\n\nAlways annotate functions with their parameter and return types" }, { "role": "user", "content": [ { "type": "text", "text": "hello" } ] } ], "messageOptions": { "precompiled": true } } } }

CredentialsProviderError: Could not load credentials from any providers


gcwngo avatar Oct 16 '25 22:10 gcwngo

I'm seeing the same problem. Using the rollback to previous version as a workaround.

thecodebeneath avatar Oct 17 '25 12:10 thecodebeneath

I'm having the same issue too, vscode v1.2.6 seems to be the latest working version for me.

mwsoverdick avatar Oct 24 '25 01:10 mwsoverdick

@RomneyDa, I saw your commit 2a77e6d had to do with anthropic maybe you can help?

mwsoverdick avatar Oct 24 '25 01:10 mwsoverdick

it started at least for me when I upgraded to VSCode 1.2.7 version of the plugin, I tried again this morning with 1.2.10 and I still get the same error. If I revert back to 1.2.6 it works just fine. The same thing happens in the Jetbrains plugin you need to revert back to 1.0.45 for that work

bgiaccio avatar Oct 24 '25 12:10 bgiaccio

I have the same issue. But reverted back to 1.2.6 and the issue is still there. I don't know how to solve it.

grichaud avatar Oct 25 '25 20:10 grichaud

@grichaud my co-workers had the same error in the past they claimed was solved by a system reboot. Not sure if you tried that, but maybe worth it?

mwsoverdick avatar Oct 25 '25 22:10 mwsoverdick

This continues to be an issue with newer versions. I see this when using Bedrock Claude 3.7.

jbclow avatar Nov 12 '25 15:11 jbclow

We've also been seeing this. Still seeing this in newest release.
OK in Release v1.2.2 and 1.2.6. Assuming all newer fail.

No known 'beta' flags in our config.yaml. The .env has these Anthropic vars:

  • AWS_REGION - Set to our region
  • CLAUDE_CODE_USE_BEDROCK = "1"
  • ANTHROPIC_MODEL - Set to Sonnet
  • ANTHROPIC_SMALL_FAST_MODEL - Set to Haiku
  • ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION - Set to our region
  • CLAUDE_CODE_MAX_OTUPUT_TOKENS = "4096"
  • MAX_THINKING_TOKENS = "1024"
  • DISABLE_PROMPT_CACHING = "0"

ctwardy avatar Nov 17 '25 15:11 ctwardy