Skip to content

Commit

Permalink
Add "py" as lang in conversable agent (microsoft#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshTrim committed Mar 25, 2024
1 parent 2f109f5 commit b526232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/agentchat/conversable_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ def execute_code_blocks(self, code_blocks):
)
if lang in ["bash", "shell", "sh"]:
exitcode, logs, image = self.run_code(code, lang=lang, **self._code_execution_config)
elif lang in ["python", "Python"]:
elif lang in ["python", "Python", "py"]:
if code.startswith("# filename: "):
filename = code[11 : code.find("\n")].strip()
else:
Expand Down

0 comments on commit b526232

Please sign in to comment.