LLM

class pipecat.services.azure.llm.AzureLLMService(*, api_key, endpoint, model, api_version='2024-09-01-preview', **kwargs)[source]

Bases: OpenAILLMService

A service for interacting with Azure OpenAI using the OpenAI-compatible interface.

This service extends OpenAILLMService to connect to Azure’s OpenAI endpoint while maintaining full compatibility with OpenAI’s interface and functionality.

Parameters:
  • api_key (str) – The API key for accessing Azure OpenAI

  • endpoint (str) – The Azure endpoint URL

  • model (str) – The model identifier to use

  • api_version (str, optional) – Azure API version. Defaults to “2024-09-01-preview”

  • **kwargs – Additional keyword arguments passed to OpenAILLMService

create_client(api_key=None, base_url=None, **kwargs)[source]

Create OpenAI-compatible client for Azure OpenAI endpoint.