From bac7af55abcb5255bb230e9626c9654c1ffc729a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20Thom=C3=A9?= Date: Sun, 18 Jun 2023 14:47:32 +0200 Subject: [PATCH] execute_workspace -> gen_entrypoint; execute_entrypoint Clarify semantics that `execute` steps doesn't communicate with the API. --- gpt_engineer/steps.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/gpt_engineer/steps.py b/gpt_engineer/steps.py index 9f88528..882db29 100644 --- a/gpt_engineer/steps.py +++ b/gpt_engineer/steps.py @@ -135,12 +135,6 @@ def gen_code(ai: AI, dbs: DBs): return messages -def execute_workspace(ai: AI, dbs: DBs): - messages = gen_entrypoint(ai, dbs) - execute_entrypoint(ai, dbs) - return messages - - def execute_entrypoint(ai, dbs): command = dbs.workspace["run.sh"] @@ -201,11 +195,11 @@ def use_feedback(ai: AI, dbs: DBs): # Different configs of what steps to run STEPS = { - "default": [gen_spec, gen_unit_tests, gen_code, execute_workspace], + "default": [gen_spec, gen_unit_tests, gen_code, gen_entrypoint, execute_entrypoint], "benchmark": [gen_spec, gen_unit_tests, gen_code, gen_entrypoint], - "simple": [simple_gen, execute_workspace], - "clarify": [clarify, gen_clarified_code, execute_workspace], - "respec": [gen_spec, respec, gen_unit_tests, gen_code, execute_workspace], + "simple": [simple_gen, gen_entrypoint, execute_entrypoint], + "clarify": [clarify, gen_clarified_code, gen_entrypoint, execute_entrypoint], + "respec": [gen_spec, respec, gen_unit_tests, gen_code, gen_entrypoint, execute_entrypoint], "execute_only": [execute_entrypoint], "use_feedback": [use_feedback], }