llm
Azure OpenAI Realtime LLM service implementation.
- class pipecat.services.azure.realtime.llm.AzureRealtimeLLMSettings(model: str | None | _NotGiven = <factory>, extra: dict[str, Any]=<factory>, system_instruction: str | None | _NotGiven = <factory>, temperature: float | None | _NotGiven = <factory>, max_tokens: int | None | _NotGiven = <factory>, top_p: float | None | _NotGiven = <factory>, top_k: int | None | _NotGiven = <factory>, frequency_penalty: float | None | _NotGiven = <factory>, presence_penalty: float | None | _NotGiven = <factory>, seed: int | None | _NotGiven = <factory>, filter_incomplete_user_turns: bool | None | _NotGiven = <factory>, user_turn_completion_config: UserTurnCompletionConfig | None | _NotGiven = <factory>, session_properties: SessionProperties | _NotGiven = <factory>)[source]
Bases:
OpenAIRealtimeLLMSettingsSettings for AzureRealtimeLLMService.
- class pipecat.services.azure.realtime.llm.AzureRealtimeLLMService(*, api_key: str, base_url: str, **kwargs)[source]
Bases:
OpenAIRealtimeLLMServiceAzure OpenAI Realtime LLM service with Azure-specific authentication.
Extends the OpenAI Realtime service to work with Azure OpenAI endpoints, using Azure’s authentication headers and endpoint format. Provides the same real-time audio and text communication capabilities as the base OpenAI service.
- Settings
alias of
AzureRealtimeLLMSettings
- __init__(*, api_key: str, base_url: str, **kwargs)[source]
Initialize Azure Realtime LLM service.
- Parameters:
api_key – The API key for the Azure OpenAI service.
base_url – The full Azure WebSocket endpoint URL including api-version and deployment. Example: “wss://my-project.openai.azure.com/openai/realtime?api-version=2025-04-01-preview&deployment=my-realtime-deployment”
**kwargs – Additional arguments passed to parent OpenAIRealtimeLLMService.