From 0514ee565b0e8bec85beac898d57e391be1891e6 Mon Sep 17 00:00:00 2001 From: geekan Date: Wed, 10 Jan 2024 20:36:28 +0800 Subject: [PATCH] fix bug --- metagpt/actions/write_prd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.py index 728ddfbf9..a838dea8e 100644 --- a/metagpt/actions/write_prd.py +++ b/metagpt/actions/write_prd.py @@ -164,7 +164,7 @@ class WritePRD(Action): pathname = self.git_repo.workdir / Path(COMPETITIVE_ANALYSIS_FILE_REPO) / Path(prd_doc.filename).with_suffix("") if not pathname.parent.exists(): pathname.parent.mkdir(parents=True, exist_ok=True) - await mermaid_to_file(quadrant_chart, pathname) + await mermaid_to_file(self.config.mermaid_engine, quadrant_chart, pathname) async def _save_pdf(self, prd_doc): await self.file_repo.save_as(doc=prd_doc, with_suffix=".md", relative_path=PRD_PDF_FILE_REPO)