3 個答案
- 最新
- 最多得票
- 最多評論
0
Hello.
Is the model enabled in the correct region?
This error can occur when running in a region that does not have model access enabled.
Try creating a client while specifying the region where the model is enabled as shown below.
bedrock_runtime = boto3.client(service_name='bedrock-runtime', region_name='us-east-1')
0
Are you specifying correctly (maybe typo?) the model id? https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html
相關內容
- 已提問 6 個月前
In what region did you enable the model? Also, what region are you running Lambda in? Could you also share the code you are running?
The problem was that the lambda function was not using the basic model my account had access to. I corrected the code and it works as expected now. Thank you because you made me check the lambda function code.