mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2026-02-20 20:45:52 +01:00
Fix an exception for gpt response with lang=sh (#105)
This commit is contained in:
@@ -107,7 +107,7 @@ def execute_workspace(ai: AI, dbs: DBs):
|
||||
)
|
||||
|
||||
[[lang, command]] = parse_chat(messages[-1]['content'])
|
||||
assert lang in ['', 'bash']
|
||||
assert lang in ['', 'bash', 'sh']
|
||||
|
||||
print('Do you want to execute this code?')
|
||||
print(command)
|
||||
|
||||
Reference in New Issue
Block a user