Open cam-white-aeroflow opened 1 month ago
Hi @cam-white-aeroflow , thanks for the great writeup here! The Bedrock provider was contributed by a community member so unfortunately I'm not the most familiar with it.
This appears to be the lines you're hitting: https://github.com/continuedev/continue/blob/main/core/llm/llms/Bedrock.ts#L152-L164
My only thought is to perhaps try removing the profile
from your config.json, e.g.
{
"models": [
{
"title": "Claude 3.5 Sonnet",
"provider": "bedrock",
"model": "anthropic.claude-3-5-sonnet-20240620-v1:0",
"region": "us-east-1",
}
]
}
This should then set your profile to "bedrock"
, which should fail, and then fallback to the default profile here: https://github.com/continuedev/continue/blob/main/core/llm/llms/Bedrock.ts#L161
Other than that my best guess is that there is some unexpected behavior going on with the fromIni
method we're importing: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-credential-providers/Variable/fromIni/
Apologies for the inconclusive troubleshooting though.
cc @KoStard - wondering if you have any insights here.
@cam-white-aeroflow running into this issue as well, any luck on solving this?
Before submitting your bug report
Relevant environment info
Description
I am attempting to configure cursor to use claude 3.5 sonnet via AWS Bedrock. Currently my aws configuration and credentials are as follows
Context
cat ~/.aws/config | pbcopy
:cat ~/.aws/credentials | pbcopy
: (with values omitted)I am confident that these credentials+config are fine because I am able to invoke the model directly via the AWS CLI
Problem
I have attempted to configure continue to use the same model and the same profile + credentials
cat ~/.continue/config.json | pbcopy
However when I attempt to use the chat interface, I get the following error message
The logs contain a suspicious warning
At first I thought I made some dumb whitespace or spelling mistake but I do not believe I did. With the exception of omitting my aws keys, the files I have provided are unmodified, piped directly from cat into pbcopy
To reproduce
cmd+L
Log output