Opus 4.5 in AWS Bedrock "undefined: The provided model identifier is invalid." #3137

Closed
opened 2026-02-16 17:38:48 -05:00 by yindo · 8 comments
Owner

Originally created by @acastro2 on GitHub (Nov 26, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When selecting Opus 4.5 in bedrock I consistently get undefined: The provided model identifier is invalid., I also tried to pass with --model, same behavior.

OpenCode version

0.15.31

Steps to reproduce

  1. open opencode
  2. select /model Amazon Bedrock Opus 4.5
  3. Type anything

Screenshot and/or share link

Image

Operating System

Macos Tahoe 26.1

Terminal

Iterm2

Originally created by @acastro2 on GitHub (Nov 26, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When selecting Opus 4.5 in bedrock I consistently get undefined: The provided model identifier is invalid., I also tried to pass with --model, same behavior. ### OpenCode version 0.15.31 ### Steps to reproduce 1. open opencode 2. select /model Amazon Bedrock Opus 4.5 3. Type anything ### Screenshot and/or share link <img width="1761" height="258" alt="Image" src="https://github.com/user-attachments/assets/cc1bd3b4-9cce-4cc2-9dcb-20608d96e08d" /> ### Operating System Macos Tahoe 26.1 ### Terminal Iterm2
yindo added the bug label 2026-02-16 17:38:48 -05:00
yindo closed this issue 2026-02-16 17:38:48 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 26, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2957: Missing AWS Bedrock Models - may contain information about Bedrock model configuration issues
  • #2879: Claude Sonnet 4.5 is not working with AWS Bedrock - similar Bedrock model compatibility issue
  • #2902: Add Support for Sonnet 4.5 model for Amazon Bedrock - related Bedrock Anthropic model support

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 26, 2025): This issue might be a duplicate of existing issues. Please check: - #2957: Missing AWS Bedrock Models - may contain information about Bedrock model configuration issues - #2879: Claude Sonnet 4.5 is not working with AWS Bedrock - similar Bedrock model compatibility issue - #2902: Add Support for Sonnet 4.5 model for Amazon Bedrock - related Bedrock Anthropic model support Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 26, 2025):

@acastro2 upgrade to latest! I think it is fixed

opencode upgrade 1.0.114

@rekram1-node commented on GitHub (Nov 26, 2025): @acastro2 upgrade to latest! I think it is fixed opencode upgrade 1.0.114
Author
Owner

@jluisrojas commented on GitHub (Nov 26, 2025):

I am still getting the error on 1.0.114 @rekram1-node

@jluisrojas commented on GitHub (Nov 26, 2025): I am still getting the error on 1.0.114 @rekram1-node
Author
Owner

@rekram1-node commented on GitHub (Nov 26, 2025):

@jluisrojas use the global variant

@rekram1-node commented on GitHub (Nov 26, 2025): @jluisrojas use the global variant
Author
Owner

@rekram1-node commented on GitHub (Nov 26, 2025):

Claude Opus 4.5 (Global)

@rekram1-node commented on GitHub (Nov 26, 2025): Claude Opus 4.5 (Global)
Author
Owner

@jluisrojas commented on GitHub (Nov 26, 2025):

Can confirm that "Claude Opus 4.5 (Global)" is working for me. Thanks @rekram1-node

@jluisrojas commented on GitHub (Nov 26, 2025): Can confirm that "Claude Opus 4.5 (Global)" is working for me. Thanks @rekram1-node
Author
Owner

@rekram1-node commented on GitHub (Nov 26, 2025):

removed the non global one: https://github.com/sst/models.dev/pull/440

it'll sync to ur cache at some point today

@rekram1-node commented on GitHub (Nov 26, 2025): removed the non global one: https://github.com/sst/models.dev/pull/440 it'll sync to ur cache at some point today
Author
Owner

@acastro2 commented on GitHub (Nov 26, 2025):

You absolutely rock

@acastro2 commented on GitHub (Nov 26, 2025): You absolutely rock
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3137