diff --git a/aider/website/assets/azure-deployment.png b/aider/website/assets/azure-deployment.png new file mode 100644 index 000000000..0594cc08e Binary files /dev/null and b/aider/website/assets/azure-deployment.png differ diff --git a/aider/website/docs/llms/azure.md b/aider/website/docs/llms/azure.md index 55686afa2..c342ec700 100644 --- a/aider/website/docs/llms/azure.md +++ b/aider/website/docs/llms/azure.md @@ -12,16 +12,16 @@ python -m pip install -U aider-chat # Mac/Linux: export AZURE_API_KEY= -export AZURE_API_VERSION=2023-05-15 +export AZURE_API_VERSION=2024-12-01-preview export AZURE_API_BASE=https://myendpt.openai.azure.com # Windows setx AZURE_API_KEY -setx AZURE_API_VERSION 2023-05-15 +setx AZURE_API_VERSION 2024-12-01-preview setx AZURE_API_BASE https://myendpt.openai.azure.com # ... restart your shell after setx commands -aider --model azure/ +aider --model azure/ # List models available from Azure aider --list-models azure/ @@ -29,3 +29,9 @@ aider --list-models azure/ Note that aider will also use environment variables like `AZURE_OPENAI_API_xxx`. + +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. + +When setting the model to use with `--model azure/`, `` 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. + +![example azure deployment](/assets/azure-deployment.png) \ No newline at end of file