-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cb3e06
commit 61065fe
Showing
39 changed files
with
312 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# API | ||
|
||
Will be updated soon, stay tuned. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Will be updated soon, stay tuned. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 18 additions & 3 deletions
21
src/guide/get_started/setup.md → src/enus/guide/get_started/setup.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,55 @@ | ||
# Setup | ||
|
||
Using MetaGPT involves connecting with model providers. We will walk through the setup in this page. | ||
|
||
## Setup for LLM API | ||
|
||
We will take OpenAI API as an example. You can finish the setup in either way: | ||
|
||
1. Use environment variables. This can be used temporarily for a quick start or trying out a demo. | ||
2. Use a config or key file. This is the recommended way, best for continuous and full-feature usage and development. | ||
|
||
### 1. Use environment variables | ||
|
||
Run in command line: | ||
|
||
```shell | ||
export OPENAI_API_KEY="sk-..." # YOUR_API_KEY | ||
export OPENAI_API_MODEL="intended model" # gpt-4, gpt-3.5-turbo, etc. | ||
``` | ||
|
||
Or in python: | ||
|
||
```python | ||
import os | ||
os.environ["OPENAI_API_KEY"] = "sk-..." # YOUR_API_KEY | ||
os.environ["OPENAI_API_MODEL"] = "intended model" # gpt-4, gpt-3.5-turbo, etc. | ||
``` | ||
|
||
### 2. Use a config or key file | ||
|
||
1. In your current working directory, create a folder `config` and add a new file named `config.yaml` or `key.yaml` under it. | ||
2. Copy the content from the example [config.yaml](https://github.com/geekan/MetaGPT/blob/main/config/config.yaml) file into your new files | ||
3. Fill in your own values to the file: | ||
|
||
```yaml | ||
OPENAI_API_KEY: "sk-..." # YOUR_API_KEY | ||
OPENAI_API_MODEL: "intended model" # gpt-4, gpt-3.5-turbo, etc. | ||
OPENAI_API_KEY: 'sk-...' # YOUR_API_KEY | ||
OPENAI_API_MODEL: 'intended model' # gpt-4, gpt-3.5-turbo, etc. | ||
``` | ||
Remember: If you follow the `git clone` approach in [Installation](./installation), `config/config.yaml` will already be there. Just edit it or make a copy named `config/key.yaml` for editting. This way you don't accidentally commit and share your API key using git. | ||
|
||
> Note: | ||
> MetaGPT will read your setup in this priority order: `config/key.yaml > config/config.yaml > environment variable` | ||
|
||
Here you are good to go! See [Quickstart](./quickstart) or our [Tutorials](/guide/tutorials/agent_101) for your first run! | ||
|
||
## Setup for different model providers | ||
|
||
### OpenAI | ||
|
||
### Azure | ||
|
||
### Anthropic | ||
|
||
## Setup for other APIs | ||
## Setup for other APIs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...de/in_depth_guides/agent_communication.md → ...de/in_depth_guides/agent_communication.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# Agent Communication | ||
|
||
Will be updated soon, stay tuned. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Use Your Own LLM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
## Three react modes | ||
|
||
## Customize thinking process | ||
## Customize thinking process |
File renamed without changes.
Oops, something went wrong.