mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
added .env docs
This commit is contained in:
parent
0b7bee8712
commit
f8b30e0703
2 changed files with 28 additions and 28 deletions
28
website/docs/llms/dotenv.md
Normal file
28
website/docs/llms/dotenv.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
parent: Connecting to LLMs
|
||||
nav_order: 900
|
||||
---
|
||||
|
||||
# Using a .env file
|
||||
|
||||
You can use a `.env` file to store various keys and other settings for the
|
||||
models you use with aider.
|
||||
|
||||
Aider will look for a `.env` file in the
|
||||
root of your git repo or in the current directory.
|
||||
You can give it an explicit file to load with the `--env-file <filename>` parameter.
|
||||
|
||||
Here is an example `.env` file:
|
||||
|
||||
```
|
||||
OPENAI_API_KEY=<key>
|
||||
ANTHROPIC_API_KEY=<key>
|
||||
GROQ_API_KEY=<key>
|
||||
OPENROUTER_API_KEY=<key>
|
||||
|
||||
AZURE_API_KEY=<key>
|
||||
AZURE_API_VERSION=2023-05-15
|
||||
AZURE_API_BASE=https://example-endpoint.openai.azure.com
|
||||
|
||||
OLLAMA_API_BASE=http://127.0.0.1:11434
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue