Skip to content

AWS Bedrock Sonnet 1m context models is not working #577

@parthiban-subramani

Description

@parthiban-subramani

I couldn’t find the AWS Bedrock Sonnet 1M-context model in models.dev, so I created a custom config.

{
  "$schema": "https://opencode.ai/config.json",
  "model": "us.anthropic.claude-sonnet-4-5-20250929-v1:0[1m]",
  "provider": {
    "amazon-bedrock": {
      "models": {
        "us.anthropic.claude-sonnet-4-5-20250929-v1:0[1m]": {
          "name": "Claude Sonnet 4.5[1m] (AWS Bedrock)",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 16000
            }
          }
        }
      }
    }
  }
}

However, when I initiate the chat, I get an error. Any idea how to resolve this?

Image

When I change the model to "anthropic.claude-sonnet-4-5-20250929-v1:0[1m]", I get this error.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions