Using Amazon Bedrock in LobeChat
Amazon Bedrock is a fully managed foundational model API service that allows users to access models from leading AI companies (such as AI21 Labs, Anthropic, Cohere, Meta, Stability AI) and Amazon's own foundational models.
This document will guide you on how to use Amazon Bedrock in LobeChat:
Step 1: Grant Access to Amazon Bedrock Models in AWS
Access and log in to the AWS Console
Search for bedrock and enter the Amazon Bedrock service
Select Models access from the left menu
Open model access permissions based on your needs
Some models may require additional information from you
Step 2: Obtain API Access Keys
Continue searching for IAM in the AWS console and enter the IAM service
In the Users menu, create a new IAM user
Enter the user name in the pop-up dialog box
Add permissions for this user or join an existing user group to ensure access to Amazon Bedrock
Create an access key for the added user
Copy and securely store the access key and secret access key, as they will be needed later
Please securely store the keys as they will only be shown once. If you lose them accidentally, you
will need to create a new access key.
Step 3: Configure Amazon Bedrock in LobeChat
Access the Settings interface in LobeChat
Find the setting for Amazon Bedrock under Language Models and open it
Open Amazon Bedrock and enter the obtained access key and secret access key
Choose an Amazon Bedrock model for your assistant to start the conversation
You may incur charges while using the API service, please refer to Amazon Bedrock's pricing
policy.
You can now engage in conversations using the models provided by Amazon Bedrock in LobeChat.