From 8ff9302f048e61489f22aa4f21a06cb8b3b38a49 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Thu, 23 Apr 2026 00:18:46 +0200 Subject: [PATCH] bedrock: Fix wrong model ID for Opus 4.7 (#54554) Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Closes #54547 Release Notes: - bedrock: Fixed an issue where Opus 4.7 would not work because of an invalid model ID --- crates/bedrock/src/models.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bedrock/src/models.rs b/crates/bedrock/src/models.rs index e26d98a3d716bf373e911af425c6bfa63c53a10d..35937a0e9028665596af9e207a4ebdb462bbff02 100644 --- a/crates/bedrock/src/models.rs +++ b/crates/bedrock/src/models.rs @@ -289,7 +289,7 @@ impl Model { Self::ClaudeOpus4_1 => "anthropic.claude-opus-4-1-20250805-v1:0", Self::ClaudeOpus4_5 => "anthropic.claude-opus-4-5-20251101-v1:0", Self::ClaudeOpus4_6 => "anthropic.claude-opus-4-6-v1", - Self::ClaudeOpus4_7 => "anthropic.claude-opus-4-7-v1", + Self::ClaudeOpus4_7 => "anthropic.claude-opus-4-7", Self::ClaudeSonnet4_6 => "anthropic.claude-sonnet-4-6", Self::Llama4Scout17B => "meta.llama4-scout-17b-instruct-v1:0", Self::Llama4Maverick17B => "meta.llama4-maverick-17b-instruct-v1:0", @@ -817,7 +817,7 @@ mod tests { ); assert_eq!( Model::ClaudeOpus4_7.cross_region_inference_id("eu-west-1", false)?, - "eu.anthropic.claude-opus-4-7-v1" + "eu.anthropic.claude-opus-4-7" ); Ok(()) } @@ -851,7 +851,7 @@ mod tests { ); assert_eq!( Model::ClaudeOpus4_7.cross_region_inference_id("ap-southeast-2", false)?, - "au.anthropic.claude-opus-4-7-v1" + "au.anthropic.claude-opus-4-7" ); Ok(()) } @@ -915,7 +915,7 @@ mod tests { ); assert_eq!( Model::ClaudeOpus4_7.cross_region_inference_id("us-east-1", true)?, - "global.anthropic.claude-opus-4-7-v1" + "global.anthropic.claude-opus-4-7" ); assert_eq!( Model::Nova2Lite.cross_region_inference_id("us-east-1", true)?,