Use Azure OpenAI Service with Agno
pip install agno[azure]
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"
from agno.agent import Agent
from agno.models.azure import AzureOpenAIResponses
agent = Agent(
model=AzureOpenAIResponses(
id="gpt-4",
azure_deployment="your-deployment-name"
)
)