firebase@12.4.0
Breaking Changes📦 firebase-authView on GitHub →
⚠ 2 breaking✨ 4 features🐛 2 fixes🔧 4 symbols
Summary
This release introduces GA status for Imagen Generation and the Gemini Developer API, adds URL context tool support, and includes a breaking change requiring function calling handlers to return Promises.
⚠️ Breaking Changes
- The `functionCallingHandler` property in `StartAudioConversationOptions` now requires the handler function to return a `Promise<FunctionResponse>`. Update existing handlers to return a Promise.
- Changed the `functionCallingHandler` property in `StartAudioConversationOptions` so that it now must return a `Promise<FunctionResponse>`. This is allowed in a minor release because the Live API is in Public Preview.
Migration Steps
- If you use `functionCallingHandler` in `StartAudioConversationOptions`, ensure it returns a `Promise<FunctionResponse>` instead of a direct `FunctionResponse`.
✨ New Features
- Added a `sendFunctionResponses` method to `LiveSession` for sending function responses during realtime sessions.
- Added support for the URL context tool, enabling the model to access content from provided public web URLs.
- Imagen Generation is now Generally Available (GA).
- The Gemini Developer API is now Generally Available (GA).
🐛 Bug Fixes
- Fixed an issue where function responses during audio conversations caused the WebSocket connection to close (See GitHub Issue #9264).
- Updated SDK to handle empty parts when streaming.
🔧 Affected Symbols
LiveSessionStartAudioConversationOptionsfunctionCallingHandlerFunctionResponse