Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
22.03k stars 2.05k forks source link

Claude Haiku 3.5 not working with AWS Bedrock #2262

Open xerebz opened 1 week ago

xerebz commented 1 week ago

Output is blank for Haiku 3.5 using Bedrock. Sonnet V2 had this same issue (#2120), but that one was fixed.

Issue is present in 0.62 and main branch.

aider
Aider v0.62.1.dev5+ge699968b
Model: bedrock/anthropic.claude-3-5-haiku-20241022-v1:0 with whole edit format
Git repo: none
Repo-map: disabled
Use /help <question> for help, run "aider --help" to see cmd line args
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> test

Tokens: 593 sent, 0 received. Cost: $0.00059 message, $0.00059 session.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
>
scottyeung commented 1 week ago

Got this error instead

litellm.NotFoundError: BedrockException - Bedrock HTTPX: Unknown provider=us, model=us.anthropic.claude-3-5-haiku-20241022-v1:0

paul-gauthier commented 3 days ago

Thanks for trying aider and filing this issue.

Sorry, it would be difficult for me to help debug your bedrock configuration.