Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

svg reporter

shenchucheng128552b9fbd6
diff --git a/metagpt/actions/design_api.py b/metagpt/actions/design_api.py
index 86fa699bb..68a66d5a4 100644
--- a/metagpt/actions/design_api.py
+++ b/metagpt/actions/design_api.py
@@ -231,7 +231,7 @@ class WriteDesign(Action):
async def _save_mermaid_file(self, data: str, pathname: Path):
pathname.parent.mkdir(parents=True, exist_ok=True)
await mermaid_to_file(self.config.mermaid.engine, data, pathname)
- image_path = pathname.parent / f"{pathname.name}.png"
+ image_path = pathname.parent / f"{pathname.name}.svg"
if image_path.exists():
await GalleryReporter().async_report(image_path, "path")
diff --git a/metagpt/actions/write_prd.py b/metagpt/actions/write_prd.py
index 4b2015145..7a04520d6 100644
--- a/metagpt/actions/write_prd.py
+++ b/metagpt/actions/write_prd.py
@@ -278,7 +278,7 @@ class WritePRD(Action):
pathname = output_filename or self.repo.workdir / COMPETITIVE_ANALYSIS_FILE_REPO / Path(prd_doc.filename).stem
pathname.parent.mkdir(parents=True, exist_ok=True)
await mermaid_to_file(self.config.mermaid.engine, quadrant_chart, pathname)
- image_path = pathname.parent / f"{pathname.name}.png"
+ image_path = pathname.parent / f"{pathname.name}.svg"
if image_path.exists():
await GalleryReporter().async_report(image_path, "path")