Resolve AWS credentials using default credentials provider chain for Bedrock (#1752)

This commit is contained in:
msvechla
2025-05-16 05:13:40 +02:00
committed by GitHub
parent d4672b7e1e
commit 2f806ca342
4 changed files with 276 additions and 11 deletions

View File

@@ -258,6 +258,8 @@ M._defaults = {
timeout = 30000, -- Timeout in milliseconds
temperature = 0,
max_tokens = 20480,
aws_region = "", -- AWS region to use for authentication and bedrock API
aws_profile = "", -- AWS profile to use for authentication, if unspecified uses default credentials chain
},
---@type AvanteSupportedProvider
gemini = {
@@ -642,6 +644,8 @@ M.BASE_PROVIDER_KEYS = {
"api_key_name",
"timeout",
"display_name",
"aws_region",
"aws_profile",
-- internal
"local",
"_shellenv",