From b526232d489c4c8f76388b525f6c89c901087032 Mon Sep 17 00:00:00 2001 From: Josh Trim Date: Mon, 25 Mar 2024 01:30:22 -0700 Subject: [PATCH] Add "py" as lang in conversable agent (#1062) --- autogen/agentchat/conversable_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/agentchat/conversable_agent.py b/autogen/agentchat/conversable_agent.py index ef350f7d9e2..f54b8c81660 100644 --- a/autogen/agentchat/conversable_agent.py +++ b/autogen/agentchat/conversable_agent.py @@ -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: