From 83c5a18bc7d20a5a05a9a3e093e655d5f21d253e Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Fri, 11 Jul 2025 00:10:55 -0700 Subject: [PATCH 1/2] accessKeyId and secretAccessKey bedrock auth options --- .../model-providers/top-level/bedrock.mdx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/customize/model-providers/top-level/bedrock.mdx b/docs/customize/model-providers/top-level/bedrock.mdx index 7c959fae4..1bee58167 100644 --- a/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/customize/model-providers/top-level/bedrock.mdx @@ -186,6 +186,41 @@ aws_secret_access_key = hijklmno aws_session_token = pqrstuvwxyz # Optional: means short term creds. ``` +You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication instead of a local credentials profile. + + + + ```yaml title="config.yaml" + models: + - name: Claude 3.7 Sonnet + provider: bedrock + model: us.anthropic.claude-3-7-sonnet-20250219-v1:0 + env: + region: us-east-1 + accessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }} # can also enter key inline here for local assistants + secretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }} # can also enter key inline here for local assistants + roles: + - chat + ``` + + + ```json title="config.json" + { + "models": [ + { + "title": "Claude 3.7 Sonnet", + "provider": "bedrock", + "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0", + "region": "us-east-1", + "accessKeyId": "[YOUR_ACCESS_KEY_ID]", + "secretAccessKey": "[YOUR_SECRET_ACCESS_KEY]" + } + ] + } + ``` + + + ## Custom Imported Models To setup Bedrock using custom imported models, add the following to your config file: From 3f0f908f16f8cdc4c29283280e8e62afee0eca1c Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Thu, 17 Jul 2025 17:37:30 +0200 Subject: [PATCH 2/2] fix tabs syntax --- docs/customize/model-providers/top-level/bedrock.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/customize/model-providers/top-level/bedrock.mdx b/docs/customize/model-providers/top-level/bedrock.mdx index 1bee58167..93ed96648 100644 --- a/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/customize/model-providers/top-level/bedrock.mdx @@ -188,8 +188,8 @@ aws_session_token = pqrstuvwxyz # Optional: means short term creds. You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication instead of a local credentials profile. - - + + ```yaml title="config.yaml" models: - name: Claude 3.7 Sonnet @@ -202,8 +202,8 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i roles: - chat ``` - - + + ```json title="config.json" { "models": [ @@ -218,7 +218,7 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i ] } ``` - + ## Custom Imported Models