nus-apr / auto-code-rover

A project structure aware autonomous software engineer aiming for autonomous program improvement. Resolved 30.67% tasks (pass@1) in SWE-bench lite with each task costs less than $0.7.
Other
2.37k stars 236 forks source link

feat: Amazon Bedrock support ⛰️ #40

Closed JGalego closed 4 weeks ago

JGalego commented 2 months ago

Overview

This PR adds support for the following models available on Amazon Bedrock:

Instructions

  1. Build image

    docker build --rm -f Dockerfile -t acr .
  2. Set up AWS credentials

    # See https://litellm.vercel.app/docs/providers/bedrock
    export AWS_REGION_NAME=...
    export AWS_ACCESS_KEY_ID=...
    export AWS_SECRET_ACCESS_KEY=...
  3. Start image

    docker run -it $(env | grep AWS_ | xargs printf ' -e %s') -p 3000:3000 -p 5000:5000 acr
  4. Start web UI

    cd /opt/auto-code-rover/demo_vis/
    sed -i 's/gpt-4-0125-preview/bedrock\/anthropic.claude-3-sonnet-20240229-v1:0/g' main.py
    bash run.sh
  5. Head over to [http://localhost:3000]()

  6. Click 💡 Try example? 💡

  7. Click 🚀 Boot Now! 🚀

    bedrock-acr

Marti2203 commented 4 weeks ago

Hi @JGalego , I tested the model driver today. Only added Claude 2 to the patch just for completeness sake. Looks good, thanks for the contribution!