Back to Open Interpreter

Azure

docs/language-models/hosted-models/azure.mdx

0.4.21.1 KB
Original Source

To use a model from Azure, set the model flag to begin with azure/:

<CodeGroup>
bash
interpreter --model azure/<your_deployment_id>
python
from interpreter import interpreter

interpreter.llm.model = "azure/<your_deployment_id>"
interpreter.chat()
</CodeGroup>

Required Environment Variables

Set the following environment variables (click here to learn how) to use these models.

Environment VariableDescriptionWhere to Find
AZURE_API_KEYThe API key for authenticating to Azure's services.Azure Account Page
AZURE_API_BASEThe base URL for Azure's services.Azure Account Page
AZURE_API_VERSIONThe version of Azure's services.Azure Account Page