diff --git a/gpt_engineer/ai.py b/gpt_engineer/ai.py index ef9b65bb8e..b373041934 100644 --- a/gpt_engineer/ai.py +++ b/gpt_engineer/ai.py @@ -2,6 +2,8 @@ import logging +from typing import Dict, List + import openai logger = logging.getLogger(__name__) @@ -29,7 +31,7 @@ def fuser(self, msg): def fassistant(self, msg): return {"role": "assistant", "content": msg} - def next(self, messages: list[dict[str, str]], prompt=None): + def next(self, messages: List[Dict[str, str]], prompt=None): if prompt: messages += [{"role": "user", "content": prompt}] diff --git a/gpt_engineer/preprompts/generate b/gpt_engineer/preprompts/generate index b85750790d..30d3a44185 100644 --- a/gpt_engineer/preprompts/generate +++ b/gpt_engineer/preprompts/generate @@ -15,6 +15,8 @@ FILENAME CODE ``` +Do not comment on what every file does + You will start with the "entrypoint" file, then go to the ones that are imported by that file, and so on. Please note that the code should be fully functional. No placeholders.