First step in making gpt-engineer learn. Rename main_prompt -> prompt (#381)

* First step in collecting learnings

* Rename prompts

* remove requirements, use pip install -e . instead

* Add requirements

* Fix tests
This commit is contained in:
Anton Osika
2023-06-24 17:53:04 +02:00
committed by GitHub
parent bc6371bdd0
commit f159dc45f2
24 changed files with 196 additions and 38 deletions

View File

@@ -8,6 +8,7 @@ import typer
from gpt_engineer import steps
from gpt_engineer.ai import AI
from gpt_engineer.collect import collect_learnings
from gpt_engineer.db import DB, DBs
from gpt_engineer.steps import STEPS
@@ -56,10 +57,13 @@ def main(
preprompts=DB(Path(__file__).parent / "preprompts"),
)
for step in STEPS[steps_config]:
steps = STEPS[steps_config]
for step in steps:
messages = step(ai, dbs)
dbs.logs[step.__name__] = json.dumps(messages)
collect_learnings(model, temperature, steps, dbs)
if __name__ == "__main__":
app()