GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Amazon Bedrock GPT 5.4 & 5.5 not working with opencode config · Issue #30993 · anomalyco/opencode

Amazon Bedrock GPT 5.4 & 5.5 not working with opencode config #30993

New issue
Copy link
New issue
Copy link
Closed
#31001
Closed
Amazon Bedrock GPT 5.4 & 5.5 not working with opencode config#30993
#31001
Copy link
Assignees
rekram1-node

Description

@dreamorosi
dreamorosi
opened on Jun 5, 2026
Issue body actions

Description

I am trying to use OpenAI GPT 5.4 & 5.5 models from Amazon Bedrock (which I have verified work using the same combo of region & api key outside of opencode) and opencode doesn't use the region and apiKey declared in the opencode configs like all other Amazon Bedrock do on opencode.

Based on what I could gather, this is due to these models requiring the Bedrock mantle specific ai sdk modules which was implemented here 9f42bd4 .

The first issue is that for mantle, options.region from config is ignored for the URL (only AWS_REGION env works). As far as I can tell, I think this is because the bedrock loader has no vars() emitting AWS_REGION.

The second issue is that even when apiKey from the config is used, opencode ends up taking a code path that disables mantle Responses routing, resulting in a 400 error.

Plugins

none

OpenCode version

1.16.2

Steps to reproduce

  • Create a config object like the below (which works with other Amazon Bedrock models):
"provider": {
  "amazon-bedrock": {
    "options": {
      "region": "us-east-2"
      "apiKey": "xxxx"        
    }
  }
}
  • Select GPT 5.5 (refresh models if necessary)
  • Try chatting and see error

The only way that I could make it work was by:

  • running opencode auth login and adding the bedrock API key
  • setting the opencode config like this
"provider": {
  "amazon-bedrock": {
    "options": {
      "region": "us-east-2"        
    },
    "models": {
      "openai.gpt-5.4": {
        "provider": {
          "npm": "@ai-sdk/amazon-bedrock/mantle",                       
          "api": "https://bedrock-mantle.us-east-2.api.aws/openai/v1"   
        }
      },
      "openai.gpt-5.5": {
        "provider": {
          "npm": "@ai-sdk/amazon-bedrock/mantle",
          "api": "https://bedrock-mantle.us-east-2.api.aws/openai/v1"
        }
      }
    }
  }
}

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty

Activity

  1. github-actions
    assigned
    nexxeln
    on Jun 5, 2026
  2. dreamorosi commented on Jun 5, 2026

    @dreamorosi
    dreamorosi
    on Jun 5, 2026
    Author
    More actions

    Also, on long responses, initial parts of the message get repeated but can't reproduce consistently.

  3. rekram1-node
    assigned
    rekram1-node
    and unassigned
    nexxeln
    on Jun 5, 2026
  4. rekram1-node commented on Jun 5, 2026

    @rekram1-node
    rekram1-node
    on Jun 5, 2026
    Member
    More actions

    believe this pr should fix it

  5. rekram1-node
    closed this as completedin #31001on Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.