Issues with Amazon Bedrock cross-region inference #3116
Unanswered
xsayedmahmud
asked this question in
Help
Replies: 2 comments 3 replies
-
Can you try using |
Beta Was this translation helpful? Give feedback.
1 reply
-
Out of curiosity what was the issue they fixed? I am hitting the same error with all the same check lists on enabling model via console using the inference profile etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use the Amazon Bedrock provider with the AI SDK to implement cross-region inference, but I'm encountering some difficulties. Here's what I've done so far:
pnpm add @ai-sdk/amazon-bedrock
.In my API route, I'm using code similar to this:
However, I'm receiving an AccessDeniedException with the message "You don't have access to the model with the specified model ID."
My questions is does the
streamText
supports cross-region inference for Amazon Bedrock directly, or is there any additional setup needed?I've tried using both the inference profile ID and ARN, but neither seems to work. Any guidance or suggestions would be greatly appreciated!
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions