Skip to content

Commit 61ed2fa

Browse files
authored
Create setup_model.md
1 parent 3044d33 commit 61ed2fa

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

setup_model.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
This guide helps you configure the environment for different models
2+
3+
* OpenAI
4+
5+
Please set the following environment variables:
6+
```bash
7+
OPENAI_API_KEY="your_api_key_here"
8+
```
9+
10+
Run AgileCoder by specifying the backend model as GPT-3.5 or GPT-4 below:
11+
12+
```bash
13+
agilecoder --task <yourtask> --model "GPT_3_5_TURBO"
14+
agilecoder --task <yourtask> --model "GPT_4"
15+
```
16+
17+
* Anthropic
18+
19+
Please set the following environment variables:
20+
```bash
21+
MODEL_NAME=<a_model_name_of_claude>
22+
ANTHROPIC_API_KEY=<your_api_key>
23+
```
24+
where MODEL_NAME is the model name supported by Claude, e.g. `claude-3-haiku-20240307`
25+
26+
Run AgileCoder by running the command below:
27+
```bash
28+
agilecoder --task <yourtask> --model "ANTHROPIC_CLAUDE"
29+
```
30+
31+
* Ollama
32+
33+
Please host your model on the url `http://localhost:11434/api/chat`, and set the following variables:
34+
```bash
35+
MODEL_NAME=<model_name>
36+
```
37+
where MODEL_NAME is the model name supported by Ollama, e.g. llama3
38+
Run AgileCoder by running the command below:
39+
```bash
40+
agilecoder --task <yourtask> --model "OLLAMA"
41+
```

0 commit comments

Comments
 (0)