Skip to content

Commit 7f029bd

Browse files
committed
update prompts
1 parent 4329a4d commit 7f029bd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

agent/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def config(
8383
help="Use the user prompt instead of the default prompt",
8484
),
8585
user_prompt: str = typer.Option(
86-
"Here is your task:\nYou need to implement all functions with ' pass' and pass the unit tests.\nDo not change the names of existing functions or classes, as they may be referenced from other code like unit tests, etc.\nWhen you generate code, you must maintain the original formatting of the function stubs (such as whitespaces), otherwise we will not able to search/replace blocks for code modifications, and therefore you will receive a score of 0 for your generated code.",
86+
"Here is your task:\nYou need to complete the implementations for all functions (i.e., those with pass statements) and pass the unit tests.\nDo not change the names of existing functions or classes, as they may be referenced from other code like unit tests, etc.\nWhen you generate code, you must maintain the original formatting of the function stubs (such as whitespaces), otherwise we will not able to search/replace blocks for code modifications, and therefore you will receive a score of 0 for your generated code.",
8787
help="User prompt to use",
8888
),
8989
run_tests: bool = typer.Option(

agent/commit0_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ def get_file_info(file_path: Path, prefix: str = "") -> str:
119119

120120

121121
def get_target_edit_files(target_dir: str) -> list[str]:
122-
"""Find the files with the error 'NotImplementedError('IMPLEMENT ME
123-
HERE')'.
122+
"""Find the files with functions with the pass statement.
124123
"""
125124
files = []
126125
for root, _, filenames in os.walk(target_dir):

0 commit comments

Comments
 (0)