Azure OpenAI
Azure OpenAI is a cloud-based service that provides access to OpenAI's models, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure OpenAI resource in the Azure portal.
For details on model setup, see General model configuration.
Chat model
We recommend configuring GPT-4o as your chat model.
"models": [{
"title": "GPT-4o",
"provider": "azure",
"model": "gpt-4o",
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
"deployment": "<YOUR_DEPLOYMENT_NAME>",
"apiKey": "<MY_API_KEY>" // If you use subscription key, try using Azure gateway to rename it apiKey
}]
Autocomplete model
Azure OpenAI currently does not offer any autocomplete models.
Click here to see a list of autocomplete models.
Codestral will be available on Azure in the near future.
Embeddings model
We recommend configuring text-embedding-3-large as your embeddings model.
"embeddingsProvider": {
"provider": "openai",
"model": "text-embedding-3-large",
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
"deployment": "<YOUR_DEPLOYMENT_NAME>",
"apiType": "azure",
"apiKey": "<MY_API_KEY>"
}
Reranking model
Azure OpenAI currently does not offer any reranking models.
Click here to see a list of reranking models.
Privacy
If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant.
You need to apply for access to the Azure OpenAI service. Response times are typically within a few days.
General model configuration
Azure OpenAI requires a handful of additional parameters to be configured, such as a deployment name and API base URL.
To find this information in Azure AI Studio, first select the model that you would like to connect. Then visit Endpoint > Target URI.
For example, a Target URI of https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview
would map to the following:
{
"title": "GPT-4o Azure",
"model": "gpt-4o",
"provider": "openai",
"apiBase": "https://just-an-example.openai.azure.com",
"deployment": "gpt-4o-july",
"apiVersion": "2023-03-15-preview",
"apiKey": "<MY_API_KEY>"
}