Skip to content

Commit

Permalink
use python3 instead of python
Browse files Browse the repository at this point in the history
  • Loading branch information
geekan committed Dec 11, 2023
1 parent 10a4fef commit 6fc82dd
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/blog/werewolf/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ In another example, the true Seer solidified its intention of standing out again
## Code Running Guide

```shell
python examples/werewolf_game/start_game.py # use default arguments
python3 examples/werewolf_game/start_game.py # use default arguments
```

```shell
python examples/werewolf_game/start_game.py \\
python3 examples/werewolf_game/start_game.py \\
--use_reflection True \\
--use_experience False \\
--use_memory_selection False \\
Expand Down
2 changes: 1 addition & 1 deletion src/guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ MetaGPT Community - The position of Chief Evangelist rotates on a monthly basis.
Configuration instructions for SD Skills: The SD interface is currently deployed based on *https://github.com/AUTOMATIC1111/stable-diffusion-webui* \*\*For environmental configurations and model downloads, please refer to the aforementioned GitHub repository. To initiate the SD service that supports API calls, run the command specified in cmd with the parameter nowebui, i.e.,

1. ```shell
python webui.py --enable-insecure-extension-access --port xxx --no-gradio-queue --nowebui
python3 webui.py --enable-insecure-extension-access --port xxx --no-gradio-queue --nowebui
```

2. Once it runs without errors, the interface will be accessible after approximately 1 minute when the model finishes loading.
Expand Down
2 changes: 1 addition & 1 deletion src/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npm --version
sudo npm install -g @mermaid-js/mermaid-cli

# Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using:
python --version
python3 --version

# Step 3: Clone the repository to your local machine, and install it.
git clone https://github.com/geekan/metagpt
Expand Down
3 changes: 2 additions & 1 deletion src/guide/tutorials/agent_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ In MetaGPT, class `Action` is the logical abstraction for an action. Users may u
In our scenario, we define a `SimpleWriteCode` subclassed `Action`. Although it primarily acts as a wrapper around a prompt and the LLM call, we believe that this `Action` abstraction is more intuitive. In downstream and higher-level tasks, using it as a whole feels more natural than crafting a prompt and invoking the LLM separately, especially when viewed within the framework of an agent.

````python
import re
from metagpt.actions import Action

class SimpleWriteCode(Action):
Expand Down Expand Up @@ -212,7 +213,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/build_customized_agent.py
Run it with

```shell
python examples/build_customized_agent.py --msg "write a function that calculates the product of a list"
python3 examples/build_customized_agent.py --msg "write a function that calculates the product of a list"
```

Or try it on Colab
Expand Down
2 changes: 1 addition & 1 deletion src/guide/tutorials/human_engagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/build_customized_multi_agen

Run it with
```sh
python examples/build_customized_multi_agents.py --add_human True
python3 examples/build_customized_multi_agents.py --add_human True
```

A sample interaction
Expand Down
2 changes: 1 addition & 1 deletion src/guide/tutorials/multi_agent_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/build_customized_multi_agen

Run it with
```sh
python examples/build_customized_multi_agents.py --idea "write a function that calculates the product of a list"
python3 examples/build_customized_multi_agents.py --idea "write a function that calculates the product of a list"
```

Or try it on Colab
Expand Down
2 changes: 1 addition & 1 deletion src/guide/use_cases/agent/researcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Additionally, the Researcher provides the following configurations:
The `metagpt.roles.researcher` module provides a command-line interface for executing the functionalities of the Researcher. An example is as follows:

```bash
python -m metagpt.roles.researcher "dataiku vs. datarobot"
python3 -m metagpt.roles.researcher "dataiku vs. datarobot"
```
Log output: [log.txt](https://github.com/geekan/MetaGPT/files/12302886/log.txt)
Report output: [dataiku vs. datarobot.md](https://github.com/geekan/MetaGPT/files/12302882/dataiku.vs.datarobot.md)
2 changes: 1 addition & 1 deletion src/guide/use_cases/multi_agent/debate.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/debate.py

Run it with
```sh
python examples/debate.py --idea "Talk about how the U.S. should respond to climate change"
python3 examples/debate.py --idea "Talk about how the U.S. should respond to climate change"
```
A sample run

Expand Down
2 changes: 1 addition & 1 deletion src/zhcn/guide/tutorials/agent_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/build_customized_agent.py

通过以下命令运行:
```shell
python examples/build_customized_agent.py --msg "write a function that calculates the sum of a list"
python3 examples/build_customized_agent.py --msg "write a function that calculates the sum of a list"
```

或在Colab上运行
Expand Down
2 changes: 1 addition & 1 deletion src/zhcn/guide/tutorials/human_engagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/build_customized_multi_agen

使用以下命令运行
```sh
python examples/build_customized_multi_agents.py --add_human True
python3 examples/build_customized_multi_agents.py --add_human True
```

一个交互示例
Expand Down
2 changes: 1 addition & 1 deletion src/zhcn/guide/tutorials/multi_agent_101.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/build_customized_multi_agen

使用以下命令运行:
```sh
python examples/build_customized_multi_agents.py --idea "write a function that calculates the product of a list"
python3 examples/build_customized_multi_agents.py --idea "write a function that calculates the product of a list"
```

或在Colab上运行
Expand Down
2 changes: 1 addition & 1 deletion src/zhcn/guide/use_cases/agent/researcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class Researcher(Role):
`metagpt.roles.researcher`提供了命令行用于执行Researcher的功能,示例如下:

```bash
python -m metagpt.roles.researcher "dataiku vs. datarobot"
python3 -m metagpt.roles.researcher "dataiku vs. datarobot"
```

输出日志:[log.txt](https://github.com/geekan/MetaGPT/files/12302886/log.txt)
Expand Down
2 changes: 1 addition & 1 deletion src/zhcn/guide/use_cases/multi_agent/debate.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ https://github.com/geekan/MetaGPT/blob/main/examples/debate.py

运行以下命令:
```sh
python examples/debate.py --idea "Talk about how the U.S. should respond to climate change"
python3 examples/debate.py --idea "Talk about how the U.S. should respond to climate change"
```
运行结果如下:

Expand Down

0 comments on commit 6fc82dd

Please sign in to comment.