aws-samples / sample-connector-for-bedrock

Seamlessly invoke Amazon Bedrock or your custom models, enabling a smooth experience with AWS GenAI services.
https://aws-samples.github.io/sample-connector-for-bedrock/
MIT No Attribution
40 stars 12 forks source link

Add Multiple Region Support #3

Closed stevensu1977 closed 4 months ago

stevensu1977 commented 4 months ago

Issue #, if available: Add multiple region support , now we can use "us-east-1,us-west-2" region list and connector use random region from list when you invoke the model.

#you need update region list through Admin API /admin/config/region

POST /admin/config/region
Content-Type: application/json
Authorization: Bearer br_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

{
    "region":"us-east-1,us-west-2"
}

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.