From e89e0d8f6712f8362df5687978f73aeb32cf9003 Mon Sep 17 00:00:00 2001 From: geekan Date: Tue, 4 Jul 2023 12:15:09 +0800 Subject: [PATCH] fix para type --- README.md | 2 +- docs/README_CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d580c59e7..94f1cf9a8 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ ### Code walkthrough from metagpt.software_company import SoftwareCompany from metagpt.roles import ProjectManager, ProductManager, Architect, Engineer -async def startup(idea: str, investment: str = '$3.0', n_round: int = 5): +async def startup(idea: str, investment: float = 3.0, n_round: int = 5): """Run a startup. Be a boss.""" company = SoftwareCompany() company.hire([ProductManager(), Architect(), ProjectManager(), Engineer()]) diff --git a/docs/README_CN.md b/docs/README_CN.md index 66c67d803..0deb9717c 100644 --- a/docs/README_CN.md +++ b/docs/README_CN.md @@ -77,7 +77,7 @@ ### 代码实现 from metagpt.software_company import SoftwareCompany from metagpt.roles import ProjectManager, ProductManager, Architect, Engineer -async def startup(idea: str, investment: str = '$3.0', n_round: int = 5): +async def startup(idea: str, investment: float = 3.0, n_round: int = 5): """运行一个创业公司。做一个老板""" company = SoftwareCompany() company.hire([ProductManager(), Architect(), ProjectManager(), Engineer()])