Skip to main content

Setup

pip install agno[azure]
Configure Azure credentials:
export AZURE_OPENAI_API_KEY="your-key"
export AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com"
export AZURE_OPENAI_API_VERSION="2024-08-01"

Usage

from agno.agent import Agent
from agno.models.azure import AzureOpenAIResponses

agent = Agent(
    model=AzureOpenAIResponses(
        id="gpt-4",
        azure_deployment="your-deployment-name"
    )
)
See Azure OpenAI documentation for details.

Build docs developers (and LLMs) love