update README.md and config.example.toml
This commit is contained in:
parent
46062e3521
commit
bd74238235
53
README.md
53
README.md
@ -7,11 +7,60 @@ It's a simple implementation, so we welcome any suggestions, contributions, and
|
|||||||
|
|
||||||
Enjoy your own agent with OpenManus!
|
Enjoy your own agent with OpenManus!
|
||||||
|
|
||||||
## Quick Start
|
## Installation
|
||||||
Two line for run OpenManus:
|
|
||||||
|
1. Create a new conda environment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
conda create -n open_manus python=3.12
|
||||||
|
conda activate open_manus
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Clone the repository:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/mannaandpoem/OpenManus.git
|
||||||
|
cd OpenManus
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Install dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
OpenManus requires configuration for the LLM APIs it uses. Follow these steps to set up your configuration:
|
||||||
|
|
||||||
|
1. Create a `config.toml` file in the `config` directory (you can copy from the example):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp config/config.example.toml config/config.toml
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Edit `config/config.toml` to add your API keys and customize settings:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
# Global LLM configuration
|
||||||
|
[llm]
|
||||||
|
model = "gpt-4o"
|
||||||
|
base_url = "https://api.openai.com/v1"
|
||||||
|
api_key = "sk-..." # Replace with your actual API key
|
||||||
|
max_tokens = 4096
|
||||||
|
temperature = 0.0
|
||||||
|
|
||||||
|
# Optional configuration for specific LLM models
|
||||||
|
[llm.vision]
|
||||||
|
model = "gpt-4o"
|
||||||
|
base_url = "https://api.openai.com/v1"
|
||||||
|
api_key = "sk-..." # Replace with your actual API key
|
||||||
|
```
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
One line for run OpenManus:
|
||||||
|
|
||||||
|
```bash
|
||||||
python main.py
|
python main.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# Global LLM configuration
|
# Global LLM configuration
|
||||||
[llm]
|
[llm]
|
||||||
model = "deepseek-chat"
|
model = "gpt-4o"
|
||||||
base_url = "https://api.deepseek.com/v1"
|
base_url = "https://api.openai.com/v1"
|
||||||
api_key = "sk-..."
|
api_key = "sk-..."
|
||||||
max_tokens = 4096
|
max_tokens = 4096
|
||||||
temperature = 0.0
|
temperature = 0.0
|
||||||
|
|
||||||
# Optional configuration for specific LLM models
|
# Optional configuration for specific LLM models
|
||||||
[llm.vision]
|
[llm.vision]
|
||||||
model = "..."
|
model = "gpt-4o"
|
||||||
base_url = "..."
|
base_url = "https://api.openai.com/v1"
|
||||||
api_key = "sk-..."
|
api_key = "sk-..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user