Skip to content

Commit d237c17

Browse files
authored
fix docstring #150 (#152)
1 parent 66cd09c commit d237c17

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

gpt_engineer/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ def chat(
1818
delete_existing: str = typer.Argument(None, help="delete existing files"),
1919
run_prefix: str = typer.Option(
2020
"",
21-
help="run prefix, if you want to run multiple variants of the same project and later compare them",
21+
help=(
22+
"run prefix, if you want to run multiple variants of the same project and "
23+
"later compare them"
24+
),
2225
),
2326
model: str = "gpt-4",
2427
temperature: float = 0.1,

identity/generate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Make sure that every detail of the architecture is, in the end, implemented as c
44

55
You will first lay out the names of the core classes, functions, methods that will be necessary, as well as a quick comment on their purpose.
66
Before you start outputting the code, you will output a seperator in the form of a line containing "*CODEBLOCKSBELOW*"
7-
Make sure to create any appropriate module dependency or package manager dependency definition file.
7+
Make sure to create any appropriate module dependency or package manager dependency definition file.
88
Then you will format and output the content, including ALL code, of each file strictly following a markdown code block format, where the following tokens should be replaced such that [FILENAME] is the lowercase file name including the file extension, [LANG] is the markup code block language for the code's language, and [CODE] is the code:
99
[FILENAME]
1010
```[LANG]

scripts/benchmark.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def main(
3030
process = subprocess.Popen(
3131
[
3232
"python",
33-
"-u", # Unbuffered output
33+
"-u", # Unbuffered output
3434
"-m",
3535
"gpt_engineer.main",
3636
bench_folder,
@@ -50,18 +50,26 @@ def main(
5050
file.close()
5151

5252
print("process", bench_folder.name, "finished with code", process.returncode)
53-
print('Running it. Original benchmark prompt:')
53+
print("Running it. Original benchmark prompt:")
5454
print()
5555
with open(bench_folder / "main_prompt") as f:
5656
print(f.read())
5757
print()
5858

5959
try:
6060
subprocess.run(
61-
['python', "-m", "gpt_engineer.main", bench_folder, "--steps-config", "execute_only"],
61+
[
62+
"python",
63+
"-m",
64+
"gpt_engineer.main",
65+
bench_folder,
66+
"--steps-config",
67+
"execute_only",
68+
],
6269
)
6370
except KeyboardInterrupt:
6471
pass
6572

73+
6674
if __name__ == "__main__":
6775
run(main)

0 commit comments

Comments
 (0)