Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOsika authored Jun 22, 2023
1 parent ed1a7da commit 8062d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt_engineer/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ def use_feedback(ai: AI, dbs: DBs):


def fix_code(ai: AI, dbs: DBs):
code_ouput = json.loads(dbs.logs[gen_code.__name__])[-1]["content"]
code_output = json.loads(dbs.logs[gen_code.__name__])[-1]["content"]
messages = [
ai.fsystem(setup_sys_prompt(dbs)),
ai.fuser(f"Instructions: {dbs.input['main_prompt']}"),
ai.fuser(code_ouput),
ai.fuser(code_output),
ai.fsystem(dbs.preprompts["fix_code"]),
]
messages = ai.next(messages, "Please fix any errors in the code above.")
Expand Down

0 comments on commit 8062d90

Please sign in to comment.