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

Fix patch generation #581

Merged
merged 2 commits into from
Sep 13, 2024
Merged
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
4 changes: 2 additions & 2 deletions python/swe/swekit/benchmark/run_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ def get_patch_for_issue(self, workspace_id: str, issue):
params={},
)
self.logger.info(f"Get patch response: {get_patch_resp}")
if not get_patch_resp.get("successfull", False):
if not get_patch_resp.get("successful", False):
error_message = get_patch_resp.get("error")
if error_message:
raise Exception(f"Error in get_patch: {error_message}")
else:
raise Exception("Unknown error occurred in get_patch")
raise Exception(f"Unknown error occurred in get_patch: {get_patch_resp}")

patch_data = get_patch_resp.get("data", {})
if not patch_data:
Expand Down
2 changes: 1 addition & 1 deletion python/swe/swekit/scaffold/templates/crewai/agent.template
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ tools = [
),
*composio_toolset.get_actions(
actions=[
say, # This is just here as an example of a custom tool, you can remove it
# say, # This is just here as an example of a custom tool, you can remove it
Action.GITHUB_CREATE_A_PULL_REQUEST
]
),
Expand Down
Loading