Skip to content

Fix #20562: Correct Bedrock Claude Opus 4.6 model IDs#20564

Merged
1 commit merged intoBerriAI:mainfrom
rahulrd25:fix/20562-bedrock-opus-4-6-model-id
Feb 13, 2026
Merged

Fix #20562: Correct Bedrock Claude Opus 4.6 model IDs#20564
1 commit merged intoBerriAI:mainfrom
rahulrd25:fix/20562-bedrock-opus-4-6-model-id

Conversation

@rahulrd25
Copy link
Contributor

Relevant issues

Fixes #20562

Pre-Submission checklist

  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

  • Remove :0 suffix from Claude Opus 4.6 Bedrock model IDs in model_prices_and_context_window.json
  • Change claude-opus-4-6-v1:0claude-opus-4-6-v1 (global and regional variants)
  • Fixes "invalid model identifier" error when using Opus 4.6 on AWS Bedrock

@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
litellm Ready Ready Preview, Comment Feb 6, 2026 8:50am

Request Review

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Feb 6, 2026

Greptile Overview

Greptile Summary

  • Updates the Bedrock Converse model ID keys for Claude Opus 4.6 in model_prices_and_context_window.json by removing the trailing :0 suffix.
  • Applies the same change across the base, global, and regional (us, eu, apac) variants.
  • Intended to resolve Bedrock “invalid model identifier” errors while keeping the existing pricing/context metadata unchanged.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk.
  • Single-file JSON key rename scoped to Opus 4.6 Bedrock model IDs; no code-path changes and the updated keys remain consistent with the surrounding Bedrock model naming scheme in the same file.
  • No files require special attention

Important Files Changed

Filename Overview
model_prices_and_context_window.json Updated AWS Bedrock Claude Opus 4.6 model price/context entries by removing the trailing ":0" suffix from the model ID keys for global and regional variants.

Sequence Diagram

sequenceDiagram
  autonumber
  participant U as User
  participant L as LiteLLM
  participant M as model_prices_and_context_window.json
  participant B as AWS Bedrock

  U->>L: Request with model "anthropic.claude-opus-4-6-v1" (or global/us/eu/apac)
  L->>M: Lookup pricing/context by model ID key
  M-->>L: Return cost + token window + capability metadata
  L->>B: Invoke Bedrock with model identifier (no ":0" suffix)
  B-->>L: Accepts identifier / returns response
  L-->>U: Stream/return completion
Loading

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@avinashkadiyala-branch
Copy link

Any update on when this will be merged?

@ghost ghost merged commit a58f188 into BerriAI:main Feb 13, 2026
5 of 8 checks passed
Quentin-M added a commit to Quentin-M/litellm that referenced this pull request Mar 13, 2026
AWS Bedrock does not recognize anthropic.claude-opus-4-6-v1:0 as a valid
model identifier. Unlike other Claude models, Opus 4.6 requires the model
ID without the :0 version suffix: anthropic.claude-opus-4-6-v1.

Cherry-picked from search_tools_fix (efec746a17), adapted since upstream
PR BerriAI#20564 already fixed the JSON pricing keys.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Bedrock - Claude Opus 4.6 Model Id is incorrect

2 participants