Skip to main content
Credentials come from your environment, as in the rest of your code. model is the name of your Azure deployment.

With Python

AzureOpenAI() reads AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY and OPENAI_API_VERSION. With the Python SDK.

With the AI SDK

azure reads AZURE_RESOURCE_NAME and AZURE_API_KEY.

Azure AI Foundry

Any Foundry deployment that supports function calling works the same: the tools are standard JSON Schema.