Overview
Azure OpenAI Service provides access to OpenAI models hosted on Azure infrastructure. Since the Azure OpenAI client extends the standard OpenAI client, Moda automatically tracks your Azure OpenAI calls with the same setup as standard OpenAI.Setup with Moda SDK
The
model parameter for Azure OpenAI is your deployment name, not the model name. Moda captures whatever value you pass as the model identifier.Azure-Specific Configuration
| Parameter | Description |
|---|---|
azure_endpoint / endpoint | Your Azure OpenAI resource URL |
api_version / apiVersion | Azure API version (e.g., 2024-02-01) |
api_key / apiKey | Azure OpenAI API key |
model | Your deployment name (not the model name) |
Supported Features
| Feature | Captured |
|---|---|
| Chat completions | Yes |
| Streaming | Yes |
| Function calling / tool use | Yes |
| Embeddings | Yes |
| Token usage | Yes |
Troubleshooting
Model name shows deployment name instead of actual model?- This is expected with Azure OpenAI. The
modelfield will contain your deployment name.
- Verify your
api_key,api_version, andazure_endpointare correct - Ensure the deployment exists in your Azure OpenAI resource
For full SDK documentation, see the Python SDK or Node.js SDK guides.