Files
cli/dev/website/docs/llms/azure.md

676 B

parent, nav_order
parent nav_order
Connecting to LLMs 500

Azure

Dev can connect to the OpenAI models on Azure.

python -m pip install -U dev-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
# ... restart your shell after setx commands

dev --model azure/<your_deployment_name>

# List models available from Azure
dev --list-models azure/

Note that dev will also use environment variables like AZURE_OPENAI_API_xxx.