diff --git a/openai_server/autogen_utils.py b/openai_server/autogen_utils.py index 6a7f88f05..328be8c99 100644 --- a/openai_server/autogen_utils.py +++ b/openai_server/autogen_utils.py @@ -292,9 +292,7 @@ def __execute_code_dont_check_setup(self, code_blocks: List[CodeBlock]) -> Comma filename.endswith('.py'): # switch back to shell if was wrongly .py extension code_block.language = lang = 'shell' - new_filename = filename.replace('.py', '.sh') - shutil.move(filename, new_filename) - filename = new_filename + filename = filename.replace('.py', '.sh') # override lang if filename is detected, less error-prone than using code block lang elif filename and filename.endswith('.sh'): code_block.language = lang = 'shell' diff --git a/src/version.py b/src/version.py index 1b811052d..42cbc2a32 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -__version__ = "f7971ea17dede7ebb5dd9eaa7d3cb730c4e48bb0" +__version__ = "61b6b30f9b8a64dda74893bf76727dc7d0262dd0"