updata di example and Change the location of the .ipynb locations

This commit is contained in:
luxiangtao 2024-03-24 15:01:45 +08:00
parent 893501fd35
commit 83e5eb133a
2 changed files with 12 additions and 5 deletions

View file

@ -54,5 +54,5 @@ def save_history(role: Role, save_dir: str = ""):
with open(save_path / "plan.json", "w", encoding="utf-8") as plan_file:
json.dump(plan, plan_file, indent=4, ensure_ascii=False)
save_code_file(name=Path(record_time) / "history_nb", code_context=role.execute_code.nb, file_format="ipynb")
save_code_file(name=Path(record_time), code_context=role.execute_code.nb, file_format="ipynb")
return save_path