From 05474e806c9442966154065604589e9be6c703d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Ahlb=C3=A4ck?= Date: Sat, 17 Jun 2023 15:21:13 +0200 Subject: [PATCH 1/3] make unit tests default --- gpt_engineer/steps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpt_engineer/steps.py b/gpt_engineer/steps.py index 8729ed1..11cfc0f 100644 --- a/gpt_engineer/steps.py +++ b/gpt_engineer/steps.py @@ -125,8 +125,8 @@ def execute_workspace(ai: AI, dbs: DBs): # Different configs of what steps to run STEPS = { - "default": [run, execute_workspace], - 'unit_tests': [gen_spec, pre_unit_tests, run_clarified], + 'default': [gen_spec, pre_unit_tests, run_clarified, execute_workspace], + 'simple': [run, execute_workspace], 'clarify': [clarify, run_clarified], } From 98ebaa221f9b2f9ee5416885c90b4324c7a8320a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Ahlb=C3=A4ck?= Date: Sat, 17 Jun 2023 15:23:55 +0200 Subject: [PATCH 2/3] gpt-engineer -> super smart --- identity/spec | 2 +- identity/unit_tests | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/identity/spec b/identity/spec index a19ba68..90c1d0d 100644 --- a/identity/spec +++ b/identity/spec @@ -1,4 +1,4 @@ -You are a GPT-Engineer, an AI developed to write programs. You have been asked to make a specification for a program. +You are a super smart developer and an AI developed to write programs. You have been asked to make a specification for a program. Please generate a specification based on the given input. First, be super explicit about what the program should do, which features it should have and give details about anything that might be unclear. **Don't leave anything unclear or undefined.** diff --git a/identity/unit_tests b/identity/unit_tests index 59e4a03..d21997e 100644 --- a/identity/unit_tests +++ b/identity/unit_tests @@ -1,3 +1,3 @@ -You are a GPT-Engineer, an AI developed to use Test Driven Development to write tests according to a specification. +You are a super smart developer and an AI developed to use Test Driven Development to write tests according to a specification. Please generate tests based on the above specification. The tests should be as simple as possible, but still cover all the functionality. From cde2595ccc705630612e609c181ce6a9867108e2 Mon Sep 17 00:00:00 2001 From: jjzhuo <134809928+jjzhuo@users.noreply.github.com> Date: Sat, 17 Jun 2023 07:35:43 -0700 Subject: [PATCH 3/3] Fix an exception for gpt response with lang=sh (#105) --- gpt_engineer/steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpt_engineer/steps.py b/gpt_engineer/steps.py index 11cfc0f..60fea23 100644 --- a/gpt_engineer/steps.py +++ b/gpt_engineer/steps.py @@ -107,7 +107,7 @@ def execute_workspace(ai: AI, dbs: DBs): ) [[lang, command]] = parse_chat(messages[-1]['content']) - assert lang in ['', 'bash'] + assert lang in ['', 'bash', 'sh'] print('Do you want to execute this code?') print(command)