From ca2e343f6564faaf740f50a0cf27b2092b6c40fd Mon Sep 17 00:00:00 2001 From: Celia Chen Date: Wed, 27 May 2026 03:48:40 -0700 Subject: [PATCH] Revert "Add Bedrock Mantle GovCloud region (#23860)" (#24690) This reverts commit 5381240f57fe326b13bc81325f3c61596592fc7a. Gov cloud should not be supported # External (non-OpenAI) Pull Request Requirements External code contributions are by invitation only. Please read the dedicated "Contributing" markdown file for details: https://github.com/openai/codex/blob/main/docs/contributing.md If your PR conforms to our contribution guidelines, replace this text with a detailed and high quality description of your changes. Include a link to a bug report or enhancement request. --- codex-rs/model-provider/src/amazon_bedrock/mantle.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/codex-rs/model-provider/src/amazon_bedrock/mantle.rs b/codex-rs/model-provider/src/amazon_bedrock/mantle.rs index e5b497d35..7881845e4 100644 --- a/codex-rs/model-provider/src/amazon_bedrock/mantle.rs +++ b/codex-rs/model-provider/src/amazon_bedrock/mantle.rs @@ -7,11 +7,10 @@ use super::auth::BedrockAuthMethod; use super::auth::resolve_auth_method; const BEDROCK_MANTLE_SERVICE_NAME: &str = "bedrock-mantle"; -const BEDROCK_MANTLE_SUPPORTED_REGIONS: [&str; 13] = [ +const BEDROCK_MANTLE_SUPPORTED_REGIONS: [&str; 12] = [ "us-east-2", "us-east-1", "us-west-2", - "us-gov-west-1", "ap-southeast-3", "ap-south-1", "ap-northeast-1", @@ -73,10 +72,6 @@ mod tests { base_url("ap-northeast-1").expect("supported region"), "https://bedrock-mantle.ap-northeast-1.api.aws/openai/v1" ); - assert_eq!( - base_url("us-gov-west-1").expect("supported region"), - "https://bedrock-mantle.us-gov-west-1.api.aws/openai/v1" - ); } #[test]