-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All references to boto3.client in bedrock documentation use incorrect keyword name of region #3882
Comments
Hi @redsting thanks for reporting this. I think the link you provided is outdated. Here is the Amazon Bedrock - User Guide I found from searching on Google: https://docs.aws.amazon.com/pdfs/bedrock/latest/userguide/bedrock-ug.pdf. It appears the |
Thanks. That also "fixes" the bug that seemed to be with invoke. I'll see if I can find the reference to where the user guide came from. |
The bad user guide link is here on the first link on the page |
@redsting thanks for letting us know — the Boto3 docs are largely auto-generated by service APIs. So in this case the InvokeModel API documentation needs to be updated so that the change will be updated in various AWS SDKs. I reported this issue to the Bedrock team so it should be fixed soon. |
|
Describe the issue
All references to boto3.client() in the user guide online giving sample python code users region instead of region_name
Generates a TypeError Session.client() got an unexpected keyword argument 'region'
bedrock = boto3.client(service_name='bedrock', region='us-east-1', endpoint_url='https://invoke-bedrock.us-east-1.amazonaws.com')
No errors
bedrock = boto3.client(service_name='bedrock', region_name='us-east-1', endpoint_url='https://invoke-bedrock.us-east-1.amazonaws.com')
Links
https://d2eo22ngex1n9g.cloudfront.net/Documentation/BedrockUserGuide.pdf
The text was updated successfully, but these errors were encountered: