mirror of
https://github.com/Aider-AI/aider
synced 2026-04-28 02:17:03 +02:00
624 B
624 B
parent, nav_order
| parent | nav_order |
|---|---|
| Connecting to LLMs | 500 |
Azure
Aider can connect to the OpenAI models on Azure.
pip install aider-chat
# Mac/Linux:
export AZURE_API_KEY=<key>
export AZURE_API_VERSION=2023-05-15
export AZURE_API_BASE=https://myendpt.openai.azure.com
# Windows:
setx AZURE_API_KEY <key>
setx AZURE_API_VERSION 2023-05-15
setx AZURE_API_BASE https://myendpt.openai.azure.com
aider --model azure/<your_deployment_name>
# List models available from Azure
aider --models azure/
Note that aider will also use environment variables
like AZURE_OPENAI_API_xxx.