mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Apply suggestions from code review
This commit is contained in:
@@ -205,11 +205,11 @@ def use_feedback(ai: AI, dbs: DBs):
|
|||||||
|
|
||||||
|
|
||||||
def fix_code(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 = [
|
messages = [
|
||||||
ai.fsystem(setup_sys_prompt(dbs)),
|
ai.fsystem(setup_sys_prompt(dbs)),
|
||||||
ai.fuser(f"Instructions: {dbs.input['main_prompt']}"),
|
ai.fuser(f"Instructions: {dbs.input['main_prompt']}"),
|
||||||
ai.fuser(code_ouput),
|
ai.fuser(code_output),
|
||||||
ai.fsystem(dbs.preprompts["fix_code"]),
|
ai.fsystem(dbs.preprompts["fix_code"]),
|
||||||
]
|
]
|
||||||
messages = ai.next(messages, "Please fix any errors in the code above.")
|
messages = ai.next(messages, "Please fix any errors in the code above.")
|
||||||
|
|||||||
Reference in New Issue
Block a user