-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: Amazon Bedrock support (Claude models) #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
8000 Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #207 +/- ##
==========================================
- Coverage 72.89% 72.29% -0.61%
==========================================
Files 17 17
Lines 2546 2577 +31
==========================================
+ Hits 1856 1863 +7
- Misses 690 714 +24 ☔ View full report in Codecov by Sentry. |
…on; Added custom error messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Thanks a lot for putting in the time! Lmk when it's ready to merge!
…rs; Changed anthropic_history_to_messages output type
Retesting since the merge from |
|
Wait, one last thing: So when people specified |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will merge once we settle on the claude-2.0 issue
I'll change the alias name ( |
Thanks again for all the work! |
…un-report-instance_ids Make `run_report` more intuitive when using `instance_ids` filter during evaluation
Reference Issues/PRs
#27
What does this implement/fix? Explain your changes.
This PR fixes #27 (Claude models only).
It adds a
BedrockModel
class built on top ofanthropic[bedrock]
.docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock \ $(env | grep AWS_ | xargs printf ' -e %s') \ sweagent/swe-agent-run:latest \ python run.py --image_name=sweagent/swe-agent:latest \ --model_name bedrock:anthropic.claude-3-sonnet-20240229-v1:0 \ --data_path https://github.com/pvlib/pvlib-python/issues/1603 \ --config_file config/default_from_url.yaml --skip_existing=False