Problem
When the Vercel AI SDK moved away from the AWS libraries, support for all regions was not fully ported. Non-commercial regions do not use the amazonaws.com domain, and the endpoints do not resolve correctly.
Current Behavior
The only configuration option is baseUrl, which doesn’t act as a base URL when configured; it acts as the URL for the Bedrock endpoint. This fails because there are at least two Bedrock endpoints required:
bedrockbedrock-runtime
Currently, we can only set one of them via baseUrl.
Proposed Solution
The most future-proof solution is to use AWS’ native libraries for endpoint resolution, though this might conflict with existing design constraints.
I plan on submitting a PR today with a patch for the current known regions. I am looking for acknowledgement on the bug report, as it has been open for over 2 months without a response.