LemonAi.Providers.Google (lemon_ai v0.1.0)

View Source

Google Generative AI (AI Studio) provider.

This provider implements streaming for Google's Generative AI API, which is the public API for Gemini models via AI Studio.

Authentication

Requires a Google AI Studio API key, which can be obtained from: https://aistudio.google.com/apikey

Set via the GOOGLE_GENERATIVE_AI_API_KEY environment variable or pass as api_key in stream options.

Features

  • Streaming text generation
  • Tool/function calling
  • Thinking/reasoning mode (for supported models)
  • Image input (for multimodal models)

Summary

Functions

Register this provider with the registry

Functions

register(opts \\ [])

Register this provider with the registry