Skip to content

Commit

Permalink
Merge pull request #1 from jalammar/fixes-for-latest-versions
Browse files Browse the repository at this point in the history
Fixes for latest versions
  • Loading branch information
jimwhite authored Jan 12, 2025
2 parents 6e98cd6 + 735301c commit deaad22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit deaad22

Please sign in to comment.