Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the Azure portal.
We recommend configuring GPT-4o as your chat model.
config.yaml
Copy
Ask AI
models: - name: GPT-4o provider: azure model: gpt-4o apiBase: <YOUR_DEPLOYMENT_BASE> apiKey: <YOUR_AZURE_API_KEY> # If you use subscription key, try using Azure gateway to rename it apiKey env: deployment: <YOUR_DEPLOYMENT_NAME> apiType: azure-foundry # Or "azure-openai" if using OpenAI models
Azure OpenAI Service 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 Foundry, 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: