mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
@@ -18,7 +18,10 @@ def chat(
|
|||||||
delete_existing: str = typer.Argument(None, help="delete existing files"),
|
delete_existing: str = typer.Argument(None, help="delete existing files"),
|
||||||
run_prefix: str = typer.Option(
|
run_prefix: str = typer.Option(
|
||||||
"",
|
"",
|
||||||
help="run prefix, if you want to run multiple variants of the same project and later compare them",
|
help=(
|
||||||
|
"run prefix, if you want to run multiple variants of the same project and "
|
||||||
|
"later compare them"
|
||||||
|
),
|
||||||
),
|
),
|
||||||
model: str = "gpt-4",
|
model: str = "gpt-4",
|
||||||
temperature: float = 0.1,
|
temperature: float = 0.1,
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ def main(
|
|||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
print("process", bench_folder.name, "finished with code", process.returncode)
|
print("process", bench_folder.name, "finished with code", process.returncode)
|
||||||
print('Running it. Original benchmark prompt:')
|
print("Running it. Original benchmark prompt:")
|
||||||
print()
|
print()
|
||||||
with open(bench_folder / "main_prompt") as f:
|
with open(bench_folder / "main_prompt") as f:
|
||||||
print(f.read())
|
print(f.read())
|
||||||
@@ -58,10 +58,18 @@ def main(
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
['python', "-m", "gpt_engineer.main", bench_folder, "--steps-config", "execute_only"],
|
[
|
||||||
|
"python",
|
||||||
|
"-m",
|
||||||
|
"gpt_engineer.main",
|
||||||
|
bench_folder,
|
||||||
|
"--steps-config",
|
||||||
|
"execute_only",
|
||||||
|
],
|
||||||
)
|
)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run(main)
|
run(main)
|
||||||
|
|||||||
Reference in New Issue
Block a user