Overview
AzureLLMService
provides access to Azure OpenAI’s language models through an OpenAI-compatible interface. It inherits from OpenAILLMService
and supports streaming responses, function calling, and context management with enterprise-grade security and compliance.
Azure LLM API Reference
Pipecat’s API methods for Azure OpenAI integration
Example Implementation
Complete example with function calling
Azure OpenAI Documentation
Official Azure OpenAI documentation and setup
Azure Portal
Create OpenAI resources and get credentials
Installation
To use Azure OpenAI services, install the required dependency:Prerequisites
Azure OpenAI Setup
Before using Azure OpenAI LLM services, you need:- Azure Account: Sign up at Azure Portal
- OpenAI Resource: Create an Azure OpenAI resource in your subscription
- Model Deployment: Deploy your chosen model (GPT-4, GPT-3.5-turbo, etc.)
- Credentials: Get your API key, endpoint, and deployment name
Required Environment Variables
AZURE_CHATGPT_API_KEY
: Your Azure OpenAI API keyAZURE_CHATGPT_ENDPOINT
: Your Azure OpenAI endpoint URLAZURE_CHATGPT_MODEL
: Your model deployment name