Skip to content
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.

Already on GitHub? Sign in to your account

Fixes for latest versions #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from aider.coders import Coder
from aider.io import InputOutput
from aider.models import Model, register_litellm_models
from aider.repo import GitRepo

from dump import dump
from tests import run_tests
Expand Down Expand Up @@ -150,11 +151,13 @@ def get_coder(model, git_dname, chat_history_file, test_cmd, temperature, oracle
)

dump(git_dname)
repo = GitRepo(io, fnames=None, git_dname=git_dname,models=model.commit_message_models())


coder = Coder.create(
main_model=model,
io=io,
git_dname=git_dname,
repo=repo,
map_tokens=2048, # Use 2k tokens for the repo map
stream=False,
auto_commits=False, # Don't bother git committing changes
Expand All @@ -163,7 +166,7 @@ def get_coder(model, git_dname, chat_history_file, test_cmd, temperature, oracle
test_cmd=test_cmd,
# verbose=True,
# edit_format="udiff",
max_chat_history_tokens=8*1024,
# max_chat_history_tokens=8*1024,
)
coder.temperature = temperature

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lox
aider-chat
git+https://github.com/princeton-nlp/SWE-bench
swebench==1.1.5
pre-commit