Skip to main content
Use various open source models hosted on Azure’s infrastructure. Learn more here. Azure AI Foundry provides access to models like Phi, Llama, Mistral, Cohere and more.

Authentication

Navigate to Azure AI Foundry on the Azure Portal and create a service. Then set your environment variables:

Example

Use AzureAIFoundry with your Agent:

Advanced Examples

View more examples here.

Parameters

AzureAIFoundry is a subclass of the Model class and has access to the same params.