Skip to content

Commit 7d0dd29

Browse files
committed
Merge branch 'main' of github.com:Aider-AI/aider
2 parents 349cd77 + dc2d7b1 commit 7d0dd29

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

260 KB
Loading

aider/website/docs/llms/azure.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,26 @@ python -m pip install -U aider-chat
1212
1313
# Mac/Linux:
1414
export AZURE_API_KEY=<key>
15-
export AZURE_API_VERSION=2023-05-15
15+
export AZURE_API_VERSION=2024-12-01-preview
1616
export AZURE_API_BASE=https://myendpt.openai.azure.com
1717
1818
# Windows
1919
setx AZURE_API_KEY <key>
20-
setx AZURE_API_VERSION 2023-05-15
20+
setx AZURE_API_VERSION 2024-12-01-preview
2121
setx AZURE_API_BASE https://myendpt.openai.azure.com
2222
# ... restart your shell after setx commands
2323
24-
aider --model azure/<your_deployment_name>
24+
aider --model azure/<your_model_deployment_name>
2525
2626
# List models available from Azure
2727
aider --list-models azure/
2828
```
2929

3030
Note that aider will also use environment variables
3131
like `AZURE_OPENAI_API_xxx`.
32+
33+
The `aider --list-models azure/` command will list all models that aider supports through Azure, not the models that are available for the provided endpoint.
34+
35+
When setting the model to use with `--model azure/<your_model_deployment_name>`, `<your_model_deployment_name>` is likely just the name of the model you have deployed to the endpoint for example `o3-mini` or `gpt-4o`. The screenshow below shows `o3-mini` and `gpt-4o` deployments in the Azure portal done under the `myendpt` resource.
36+
37+
![example azure deployment](/assets/azure-deployment.png)

0 commit comments

Comments
 (0)