Member-only story

How to solve Bedrock Converse API ‘BedrockRunTime’ object has no attribute error?

--

Human-written

Amazon Bedrock has released a new API for calling different models available within Bedrock called — ‘Converse API’. Before the release of this API, developers used either InvokeModel or InvokeModelWithResponseStream API for using the LLMs in Bedrock.

I use Amazon Sagemaker to work on notebooks for LLM projects. Hence you will see images of Jupyter notebook cells. If you follow the guidelines in AWS documentation to try out the Converse API, you may run into the below error

Converse API call error

You can solve that in 2 steps.

1/ uninstall existing boto installations

2/ re-install boto3 ≥ 1.34 version and restarting the kernal

step1:

--

--

Aswathy Prasad
Aswathy Prasad

Written by Aswathy Prasad

AWS Solutions Architect | Engineer | interested in quirky stories | writes about experiences, learnings and feelings |afraid of uselessness

No responses yet