Repository navigation
Tags
Tags
Release v0.13.0: Refactor Live API session management and metadata re… …solution - Added explicit metadata for Live session modalities and input transport to `ModelRegistry`, enabling robust selection and local validation. - Introduced `Gemini.Live.Session.send_text/3` to abstract transport layer logic (clientContent vs. realtimeInput) for different models. - Updated examples and guides to use audio-first sessions with output transcription for Gemini 3.1 Flash Live, maintaining text-chat UX. - Enhanced `Session` validation to reject unsupported `response_modalities` locally, preventing opaque WebSocket 1011 handshake errors. - Improved Live test suite: added regression coverage for metadata-driven model selection and introduced a failure threshold for repeated transient 1011 errors on identical configurations. - Fixed legacy tool calling to avoid process-local state dependencies.
-
Apr 3, 2026 - e96 E751 a047
- zip
- tar.gz
Release v0.12.0: Gemini authentication precedence and Live session AP… …I key support - Update default Gemini auth resolution to prioritize application configuration (config :gemini_ex, api_key: ...) over the GEMINI_API_KEY environment variable. - Modify Gemini.Client.HTTP to implicitly select Gemini auth when an api_key is passed, even if the :auth option is omitted. - Enable Live session API key propagation by updating Gemini.Live.Session to pass per-session credentials through to WebSocket connections. - Ensure WebSocket auth resolution favors connection-scoped keys before falling back to global configuration. - Enhance documentation for the updated precedence order and session-scoped override paths. - Add regression tests for config precedence, implicit HTTP auth selection, and proper propagation of Live session API keys.
Release v0.11.1: Normalize Live API usage metadata and improve Vertex…
… AI compatibility
- Implement canonical `candidates_*` fields in `UsageMetadata` to unify
Gemini Live (`response_*`) and Vertex Live (`candidates_*`) schemas.
- Add `output_token_count/1` and `output_tokens_details/1` helpers for
backend-agnostic usage tracking.
- Capture and expose Vertex Live `turnCompleteReason` via `ServerContent`.
- Update `RateLimiter.Manager` to reconcile usage against canonical
fields, preferring `candidatesTokenCount` where available.
- Refine Vertex Live model resolution to exclude native-audio-only models
from text-only session candidates.
- Improve test stability:
- Add retry/skip logic for transient upstream 1011 errors.
- Dynamically skip Vertex text-only tests if no compatible model is
detected in the user's project.
- Document backend schema differences and provide updated testing
instructions in README and guides.
- Bump version to 0.11.1.
Releae v0.11.0: add Gemini 3.1 model support and comprehensive Files … …API features - Add `gemini-3.1-flash-lite-preview` and `gemini-3.1-flash-image-preview` entries to the model registry. - Implement generic `Gemini.predict/3` and `predict_long_running/3` endpoints for advanced model interactions (Imagen/Veo). - Add `thinking` boolean to `Gemini.Types.Response.Model` and `supports_thinking?/1` helper to identify reasoning capabilities. - Enhance `generateContent` response parsing with `candidates_tokens_details`, `grounding_metadata`, `logprobs_result`, and `url_context_metadata`. - Add structured parsing for `CitationMetadata` and `CitationSource`. - Implement `MultiSpeakerVoiceConfig` for advanced text-to-speech workflows. - Add `enable_enhanced_civic_answers` to `GenerationConfig`. - Enforce Gemini-only auth for Files API; add `api_key` override support. - Remove `mimeType` from file upload metadata (output-only field fix). - Deprecate `gemini-3-pro-preview` in favor of `gemini-3.1-pro-preview`.
PreviousNext