Skip to content

Commit 7e97334

Browse files
committed
refine docs
1 parent 3fa2b32 commit 7e97334

File tree

5 files changed

+29
-51
lines changed

5 files changed

+29
-51
lines changed

README.md

+7-20
Original file line numberDiff line numberDiff line change
@@ -55,30 +55,17 @@
5555

5656
### Pip installation
5757

58+
> Ensure that Python 3.9+ is installed on your system. You can check this by using: `python --version`.
59+
5860
```bash
59-
# Step 1: Ensure that Python 3.9+ is installed on your system. You can check this by using:
6061
# You can use conda to initialize a new python env
6162
# conda create -n metagpt python=3.9
6263
# conda activate metagpt
63-
python3 --version
64-
65-
# Step 2: Clone the repository to your local machine for latest version, and install it.
66-
git clone https://github.com/geekan/MetaGPT.git
67-
cd MetaGPT
68-
pip3 install -e . # or pip3 install metagpt # for stable version
69-
70-
# Step 3: setup your LLM key in the config2.yaml file
71-
mkdir ~/.metagpt
72-
cp config/config2.yaml ~/.metagpt/config2.yaml
73-
vim ~/.metagpt/config2.yaml
74-
75-
# Step 4: run metagpt cli
76-
metagpt "Create a 2048 game in python"
64+
pip install metagpt
65+
metagpt --init-config # this will create a ~/.metagpt/config2.yaml from config/config2.yaml, modify it to your own config
7766

78-
# Step 5 [Optional]: If you want to save the artifacts like diagrams such as quadrant chart, system designs, sequence flow in the workspace, you can execute the step before Step 3. By default, the framework is compatible, and the entire process can be run completely without executing this step.
79-
# If executing, ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js official website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)
80-
npm --version
81-
sudo npm install -g @mermaid-js/mermaid-cli
67+
# Usage: metagpt "<create a game or a software>"
68+
metagpt "Create a 2048 game"
8269
```
8370

8471
detail installation please refer to [cli_install](https://docs.deepwisdom.ai/main/en/guide/get_started/installation.html#install-stable-version)
@@ -99,7 +86,7 @@ docker run --rm \
9986
-v /opt/metagpt/config/config2.yaml:/app/metagpt/config/config2.yaml \
10087
-v /opt/metagpt/workspace:/app/metagpt/workspace \
10188
metagpt/metagpt:latest \
102-
metagpt "Write a cli snake game"
89+
metagpt "Create a 2048 game"
10390
```
10491

10592
detail installation please refer to [docker_install](https://docs.deepwisdom.ai/main/en/guide/get_started/installation.html#install-with-docker)

docs/README_CN.md

+9-18
Original file line numberDiff line numberDiff line change
@@ -35,29 +35,20 @@
3535
## 安装
3636
### Pip安装
3737

38+
> 确保您的系统安装了 Python 3.9 或更高版本。您可以通过以下命令来检查:`python --version`
39+
3840
```bash
39-
# 第 1 步:确保您的系统上安装了 Python 3.9+。您可以使用以下命令进行检查:
40-
# 可以使用conda来初始化新的python环境
41+
# 您可以使用 conda 来初始化一个新的 python 环境
4142
# conda create -n metagpt python=3.9
4243
# conda activate metagpt
43-
python3 --version
44-
45-
# 第 2 步:克隆最新仓库到您的本地机器,并进行安装。
46-
git clone https://github.com/geekan/MetaGPT.git
47-
cd MetaGPT
48-
pip3 install -e. # 或者 pip3 install metagpt # 安装稳定版本
49-
50-
# 第 3 步:执行metagpt
51-
# 拷贝config2.yaml为~/.metagpt/config2.yaml,并设置你自己的api_key
52-
metagpt "Write a cli snake game"
44+
pip install metagpt
45+
metagpt --init-config # 这将会从 config/config2.yaml 创建一个 ~/.metagpt/config2.yaml,根据您的需求修改它
5346

54-
# 第 4 步【可选的】:如果你想在执行过程中保存像象限图、系统设计、序列流程等图表这些产物,可以在第3步前执行该步骤。默认的,框架做了兼容,在不执行该步的情况下,也可以完整跑完整个流程。
55-
# 如果执行,确保您的系统上安装了 NPM。并使用npm安装mermaid-js
56-
npm --version
57-
sudo npm install -g @mermaid-js/mermaid-cli
47+
# 使用方法: metagpt "<创建一个游戏或软件>"
48+
metagpt "创建一个 2048 游戏"
5849
```
5950

60-
详细的安装请安装 [cli_install](https://docs.deepwisdom.ai/guide/get_started/installation.html#install-stable-version)
51+
详细的安装请参考 [cli_install](https://docs.deepwisdom.ai/guide/get_started/installation.html#install-stable-version)
6152

6253
### Docker安装
6354
> 注意:在Windows中,你需要将 "/opt/metagpt" 替换为Docker具有创建权限的目录,比如"D:\Users\x\metagpt"
@@ -78,7 +69,7 @@ docker run --rm \
7869
metagpt "Write a cli snake game"
7970
```
8071

81-
详细的安装请安装 [docker_install](https://docs.deepwisdom.ai/main/zh/guide/get_started/installation.html#%E4%BD%BF%E7%94%A8docker%E5%AE%89%E8%A3%85)
72+
详细的安装请参考 [docker_install](https://docs.deepwisdom.ai/main/zh/guide/get_started/installation.html#%E4%BD%BF%E7%94%A8docker%E5%AE%89%E8%A3%85)
8273

8374
### 快速开始的演示视频
8475
-[MetaGPT Huggingface Space](https://huggingface.co/spaces/deepwisdom/MetaGPT) 上进行体验

docs/tutorial/usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Configuration
44

5-
- Configure your `key` in any of `~/.metagpt/config2.yaml / config/config2.yaml`
5+
- Configure your `api_key` in any of `~/.metagpt/config2.yaml / config/config2.yaml`
66
- Priority order: `~/.metagpt/config2.yaml > config/config2.yaml`
77

88
```bash

docs/tutorial/usage_cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### 配置
44

5-
-`~/.metagpt/config2.yaml / config/config2.yaml` 中配置您的 `key`
5+
-`~/.metagpt/config2.yaml / config/config2.yaml` 中配置您的 `api_key`
66
- 优先级顺序:`~/.metagpt/config2.yaml > config/config2.yaml`
77

88
```bash

metagpt/startup.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717

1818
def generate_repo(
1919
idea,
20-
investment,
21-
n_round,
22-
code_review,
23-
run_tests,
24-
implement,
25-
project_name,
26-
inc,
27-
project_path,
28-
reqa_file,
29-
max_auto_summarize_code,
30-
recover_path,
20+
investment=3.0,
21+
n_round=5,
22+
code_review=True,
23+
run_tests=False,
24+
implement=True,
25+
project_name="",
26+
inc=False,
27+
project_path="",
28+
reqa_file="",
29+
max_auto_summarize_code=0,
30+
recover_path=None,
3131
) -> ProjectRepo:
3232
"""Run the startup logic. Can be called from CLI or other Python scripts."""
3333
from metagpt.roles import (

0 commit comments

Comments
 (0)