-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.platform: allIssues / PRs which are for all platforms.Issues / PRs which are for all platforms.plugin: ailabel issues for firebase_ai pluginlabel issues for firebase_ai plugintype: enhancementNew feature or requestNew feature or request
Description
What feature would you like to see?
From the link here: https://ai.google.dev/gemini-api/docs/live-session
There is a limit on Session lifetime, and server will send a GoAway message with time left duration before the session cutoff.
Currently this GoAway message is returned as an exception in LiveGenerativeModel in firebase_ai package. It'd be great to have this message returned as 1 of the accepted type, so app will know when to stop the live session.
E/flutter ( 9834): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Unhandled format for LiveServerMessage: {goAway: {timeLeft: 50s}}
Metadata
Metadata
Assignees
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.platform: allIssues / PRs which are for all platforms.Issues / PRs which are for all platforms.plugin: ailabel issues for firebase_ai pluginlabel issues for firebase_ai plugintype: enhancementNew feature or requestNew feature or request