Skip to content

Commit c861a14

Browse files
committed
edits to aws guide
1 parent b5f35d0 commit c861a14

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

guides/aws_bedrock.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# AWS Bedrock
22

33
To use AWS Bedrock with `aisuite` you will need to create an AWS account and
4-
navigate to `https://us-west-2.console.aws.amazon.com/bedrock/home`. This route
4+
navigate to `https://console.aws.amazon.com/bedrock/home`. This route
55
will be redirected to your default region. In this example the region has been set to
6-
`us-west-2`. Anywhere that is listed can be replaced with your desired region.
6+
`us-west-2`. Anywhere the region is specified can be replaced with your desired region.
77

88
Navigate to the `[overview](https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/overview)` page
99
directly or by clicking on the `Get started` link.
@@ -12,16 +12,21 @@ directly or by clicking on the `Get started` link.
1212

1313
You will first need to give your AWS account access to the foundation models by
1414
visiting the `[modelaccess](https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/modelaccess)`
15-
page to enable the models you would like to use. Make note of the `Model ID` for the model you would like to use,
16-
this will be used when using the chat completion example below.
15+
page to enable the models you would like to use.
16+
17+
After enabling the foundation models, navigate to [providers page](https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/providers)
18+
and select the provider of the model you would like to use. From this page select the specific model you would like to use and
19+
make note of the `Model ID` (currently located near the bottom) this will be used when using the chat completion example below.
1720

1821
Once that has been enabled set your Access Key and Secret in the env variables:
1922

2023
```shell
2124
export AWS_ACCESS_KEY="your-access-key"
2225
export AWS_SECRET_KEY="your-secret-key"
23-
export AWS_REGION_NAME="region-name"
26+
export AWS_REGION_NAME="region-name"
2427
```
28+
*Note: AWS_REGION_NAME is optional, a default of `us-west-2` has been set for easy of use*
29+
2530
## Create a Chat Completion
2631

2732
Install the boto3 client using your package installer
@@ -42,8 +47,8 @@ import aisuite as ai
4247
client = ai.Client()
4348

4449

45-
model_id = "meta.llama3-1-405b-instruct-v1:0" # Model ID from above
4650
provider = "aws-bedrock"
51+
model_id = "meta.llama3-1-405b-instruct-v1:0" # Model ID from above
4752

4853
messages = [
4954
{"role": "system", "content": "Respond in Pirate English."},

0 commit comments

Comments
 (0)