Closed chm10 closed 2 months ago
@chm10 Hi, thank you so much for creating PR! LGTM except for CI failure (mypy check). Could you create a commit to fix it? (Need to add two spaces before comment)
region = BEDROCK_REGION.split("-")[0] # Cross-region inference
close #508 close #527
LGTM!
@chm10 Sorry, we need to consider following things. Could you re-create a PR including following modification?
us
and eu
only)
aws bedrock list-inference-profiles --profile <profile-name>
enableBedrockCrossRegionInference
option to cdk.json
with the default value false
?
true
, if the bedrockRegion
is not included in the supported region, model id without cross region inference should be chosen. Also warning log should be added.Thank you in advance!
Tested with us-east-1 and will solve issue with EU regions too for Claude Sonnet 3.5.
*Issue #508 and #527
Description of changes: Get the region from BEDROCK_REGION and adapt to cross reference region format.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.