feat(bedrock): add AWS profile and session token support
Adds llm.bedrock.aws_profile and llm.bedrock.aws_session_token config
keys so users can authenticate to AWS Bedrock via:
- a named AWS profile (~/.aws/config)
- temporary session credentials (STS / assumed role / SSO)
- the standard AWS credential chain (env, instance metadata)
Changes:
- internal/llmutil: read aws_profile / aws_session_token from config
and llm.profiles; pass through to the uniai provider
- providers/uniai/client.go: add AwsProfile / AwsSessionToken fields;
call ResolveBedrockCredentials before creating the uniai client
- providers/uniai/bedrock_credentials.go: new file — resolve AWS
credentials via AWS SDK v2 before calling uniai
- go.mod: add aws-sdk-go-v2/config + credentials; bump uniai to latest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
authored by