Skip to content

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

feat: add none

莘权 马128953b17da4
diff --git a/metagpt/configs/mermaid_config.py b/metagpt/configs/mermaid_config.py
index 50c8a1847..47f14f4cd 100644
--- a/metagpt/configs/mermaid_config.py
+++ b/metagpt/configs/mermaid_config.py
@@ -13,7 +13,7 @@ from metagpt.utils.yaml_model import YamlModel
class MermaidConfig(YamlModel):
"""Config for Mermaid"""
- engine: Literal["nodejs", "ink", "playwright", "pyppeteer"] = "nodejs"
+ engine: Literal["nodejs", "ink", "playwright", "pyppeteer", "none"] = "nodejs"
path: str = "mmdc" # mmdc
puppeteer_config: str = ""
pyppeteer_path: str = "/usr/bin/google-chrome-stable"
diff --git a/metagpt/utils/mermaid.py b/metagpt/utils/mermaid.py
index e1d140e84..ba33b8d61 100644
--- a/metagpt/utils/mermaid.py
+++ b/metagpt/utils/mermaid.py
@@ -81,6 +81,8 @@ async def mermaid_to_file(engine, mermaid_code, output_file_without_suffix, widt
from metagpt.utils.mmdc_ink import mermaid_to_file
return await mermaid_to_file(mermaid_code, output_file_without_suffix)
+ elif engine == "none":
+ return 0
else:
logger.warning(f"Unsupported mermaid engine: {engine}")
return 0