This commit is contained in:
刘棒棒 2023-12-12 10:22:55 +08:00
parent ee1e8609a6
commit 0278934131

View file

@ -49,7 +49,6 @@ class MakeTools(WriteCodeByGenerate):
saved_path = Path(self.workspace).joinpath(func_name+self.file_suffix)
logger.info(f"Saved tool_code {func_name} in {str(saved_path)}.")
saved_path.write_text(tool_code, encoding='utf-8')
# TODO: 保存到udf中供WriteCodeWithMakeTools使用
@retry(stop=stop_after_attempt(3), wait=wait_fixed(1))
async def run(self, code_message: List[Message | Dict], **kwargs) -> str: