Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
femto committed Aug 29, 2024
1 parent d2a315b commit 5c6801b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,51 @@ obs, score, *_ = await brain.step(
"Since the novel is very long, you may need to divide it into subtasks."
)
print(obs)
```
## Get Started

### Installation

Minion current depends on metagpt to call llm and response format parsing, please follow metagpt's installation
guide of [setup metagpt](https://github.com/geekan/MetaGPT#get-started), basically it's
```
pip install --upgrade metagpt
metagpt --init-config # this will create ~/.metagpt/config2.yaml
```
then edit ~/.metagpt/config2.yaml
```
llm:
api_type: "openai" # or azure / ollama / groq etc. Check LLMType for more options
model: "gpt-4-turbo" # or gpt-3.5-turbo
base_url: "https://api.openai.com/v1" # or forward url / other llm url
api_key: "YOUR_API_KEY"
```

### Other Dependencies
#### install minion
```
git clone https://github.com/femto/MetaGPT.git && cd MetaGPT && pip install -r requirements.txt
```
#### buikd python docker env(which minion depends as virtual env to execute code)
```
docker build -t intercode-python -f docker/python.Dockerfile .
```
#### stop existing container if necessary
```
docker stop intercode-python_ic_ctr
docker rm intercode-python_ic_ctr
```
make sure container name intercode-python_ic_ctr is listenning on 3006,
the code in PythonEnv(from intercode) tries to automatically start intercode-python_ic_ctr,
the PythonEnv seem can start the container, but can't map port. So if you can't connect
to intercode-python_ic_ctr, stop the container and start it the following way:
```
docker run -d -p 3006:3006 --name intercode-python_ic_ctr intercode-python
```

## Enjoy Your Brain.Step() Journey

Then enjoy you brain.step("some requirement") journey
currently game of 24 and solve equation can reach near 100% accuracy,
while writing novel can generate plan, I'm still writing what's left.

0 comments on commit 5c6801b

Please sign in to comment.