Overview

GoogleLLMService provides integration with Google’s Gemini models, supporting streaming responses, function calling, and multimodal inputs. It includes specialized context handling for Google’s message format while maintaining compatibility with OpenAI-style contexts.

Installation

To use Google Gemini services, install the required dependencies:
pip install "pipecat-ai[google]"

Prerequisites

Google Gemini Setup

Before using Google Gemini LLM services, you need:
  1. Google Account: Sign up at Google AI Studio
  2. API Key: Generate a Gemini API key from AI Studio
  3. Model Selection: Choose from available Gemini models (Gemini 1.5 Pro, Flash, etc.)

Required Environment Variables

  • GOOGLE_API_KEY: Your Google Gemini API key for authentication