mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
fixed typo 'code_ouput' -> 'code_output' (#299)
This commit is contained in:
@@ -199,11 +199,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.identity["fix_code"]),
|
||||
]
|
||||
messages = ai.next(messages, "Please fix any errors in the code above.")
|
||||
|
||||
Reference in New Issue
Block a user