fix(bedrock): improve AWS credential handling and add model definitions

- Change error to warning when AWS credentials are missing in environment
- Allow fallback to system configuration (aws config files or instance profiles)
- Remove hardcoded region and profile parameters in Bedrock client
- Add Claude 3.7 Sonnet and DeepSeek R1 model definitions for Bedrock
- Update config manager to properly handle Bedrock provider
This commit is contained in:
Ray Krueger
2025-06-13 22:21:12 +00:00
committed by Ralph Khreish
parent 3a2325a963
commit 9d431b4b03
6 changed files with 30 additions and 13 deletions

View File

@@ -496,7 +496,10 @@ function getParametersForRole(role, explicitRoot = null) {
*/
function isApiKeySet(providerName, session = null, projectRoot = null) {
// Define the expected environment variable name for each provider
if (providerName?.toLowerCase() === 'ollama') {
const okKeys = ['ollama', 'bedrock'];
if (okKeys.includes(providerName?.toLowerCase())) {
return true; // Indicate key status is effectively "OK"
}