mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-01 20:03:28 +02:00
update readme
This commit is contained in:
parent
6c40b5ccae
commit
bd174489ac
2 changed files with 6 additions and 6 deletions
|
|
@ -1,15 +1,15 @@
|
|||
## Stanford Town Game
|
||||
|
||||
### Pre-Description
|
||||
The path configured in `examples/stanford_town/utils/const.py` is the storage path of the current project. In order to facilitate GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )'s frontend docking data (to avoid changing its code), you can set the value `temp_storage_path` to `temp_storage` of `generative_agents` when start `run_st_game.py`. like
|
||||
In order to facilitate GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )'s frontend docking data (to avoid changing its code), you can set the value `temp_storage_path` to `temp_storage` of `generative_agents` when start `run_st_game.py`. like
|
||||
|
||||
`python3 run_st_game.py --temp_storage_path path/to/ga/temp_storage xxx`
|
||||
|
||||
Or change the path under `const.py` like beflow
|
||||
|
||||
```
|
||||
STORAGE_PATH = ROOT_PATH.joinpath("storage")
|
||||
TEMP_STORAGE_PATH = ROOT_PATH.joinpath("temp_storage")
|
||||
STORAGE_PATH = EXAMPLE_PATH.joinpath("storage")
|
||||
TEMP_STORAGE_PATH = EXAMPLE_PATH.joinpath("temp_storage")
|
||||
# updated
|
||||
STORAGE_PATH = Path("{path/to/ga/storage}")
|
||||
TEMP_STORAGE_PATH = Path("{path/to/ga/temp_storage}")
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
## Stanford Town Game
|
||||
|
||||
### 前置
|
||||
`examples/stanford_town/utils/const.py`配置的路径为当前项目的存储路径,为了方便GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )的前端对接数据(避免改动它那块的代码),可在启动`run_st_game.py`加上`temp_storage_path`指向`generative_agents`对应的`temp_storage`路径。比如
|
||||
为了方便GA( [generative_agents](https://github.com/joonspk-research/generative_agents) )的前端对接数据(避免改动它那块的代码),可在启动`run_st_game.py`加上`temp_storage_path`指向`generative_agents`对应的`temp_storage`路径。比如
|
||||
|
||||
`python3 run_st_game.py --temp_storage_path path/to/ga/temp_storage xxx`
|
||||
|
||||
或将`const.py`下的
|
||||
|
||||
```
|
||||
STORAGE_PATH = ROOT_PATH.joinpath("storage")
|
||||
TEMP_STORAGE_PATH = ROOT_PATH.joinpath("temp_storage")
|
||||
STORAGE_PATH = EXAMPLE_PATH.joinpath("storage")
|
||||
TEMP_STORAGE_PATH = EXAMPLE_PATH.joinpath("temp_storage")
|
||||
# 更新为
|
||||
STORAGE_PATH = Path("{path/to/ga/storage}")
|
||||
TEMP_STORAGE_PATH = Path("{path/to/ga/temp_storage}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue