aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/amazon-bedrock/en-US
MIT No Attribution
1.48k stars 632 forks source link

Error Cell 22 / 00_generate_w_bedrock.ipynb #117

Closed gcube9 closed 7 months ago

gcube9 commented 1 year ago

AttributeError Traceback (most recent call last) Cell In[22], line 4 1 output = [] 2 try: ----> 4 response = boto3_bedrock.invoke_model_with_response_stream(body=body, modelId=modelId, accept=accept, contentType=contentType) 5 stream = response.get('body') 7 i = 1

File /opt/conda/lib/python3.10/site-packages/botocore/client.py:888, in BaseClient.getattr(self, item) 885 if event_response is not None: 886 return event_response --> 888 raise AttributeError( 889 f"'{self.class.name}' object has no attribute '{item}'" 890 )

AttributeError: 'Bedrock' object has no attribute 'invoke_model_with_response_stream'

w601sxs commented 7 months ago

Closing this; please refer to the latest bedrock workshop update and reopen if still relevant