Skip to content

πŸš€ [firebase_ai] Support GoAway message in LiveGenerativeModelΒ #17836

@suesitran

Description

@suesitran

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

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.platform: allIssues / PRs which are for all platforms.plugin: ailabel issues for firebase_ai plugintype: enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions