mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
Add Bedrock Mantle GovCloud region (#23860)
## Summary - Add us-gov-west-1 to the Bedrock Mantle supported region list - Cover the GovCloud endpoint URL in the existing base_url unit test ## Test - cargo test -p codex-model-provider
This commit is contained in:
1 parent
247e22a9f6
commit
5381240f57
1 file changed
+6
-1
@@ -7,10 +7,11 @@ use super::auth::BedrockAuthMethod;
|
|||||||
use super::auth::resolve_auth_method;
|
use super::auth::resolve_auth_method;
|
||||||
|
|
||||||
const BEDROCK_MANTLE_SERVICE_NAME: &str = "bedrock-mantle";
|
const BEDROCK_MANTLE_SERVICE_NAME: &str = "bedrock-mantle";
|
||||||
const BEDROCK_MANTLE_SUPPORTED_REGIONS: [&str; 12] = [
|
const BEDROCK_MANTLE_SUPPORTED_REGIONS: [&str; 13] = [
|
||||||
"us-east-2",
|
"us-east-2",
|
||||||
"us-east-1",
|
"us-east-1",
|
||||||
"us-west-2",
|
"us-west-2",
|
||||||
|
"us-gov-west-1",
|
||||||
"ap-southeast-3",
|
"ap-southeast-3",
|
||||||
"ap-south-1",
|
"ap-south-1",
|
||||||
"ap-northeast-1",
|
"ap-northeast-1",
|
||||||
@@ -72,6 +73,10 @@ mod tests {
|
|||||||
base_url("ap-northeast-1").expect("supported region"),
|
base_url("ap-northeast-1").expect("supported region"),
|
||||||
"https://bedrock-mantle.ap-northeast-1.api.aws/openai/v1"
|
"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]
|
#[test]
|
||||||
|
|||||||
Reference in new issue
Block a user