Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Gemini 2.0 multi-modal support via realtime plugin #230

Open
rjp44 opened this issue Dec 28, 2024 · 3 comments
Open

Add Gemini 2.0 multi-modal support via realtime plugin #230

rjp44 opened this issue Dec 28, 2024 · 3 comments

Comments

@rjp44
Copy link

rjp44 commented Dec 28, 2024

Is this something that is already being looked at?
If not, would a PR be welcome.

@nbsp
Copy link
Member

nbsp commented Dec 30, 2024

it's on our roadmap, but not being looked into at the moment. this feature is already in Agents for Python, if you need it!
a PR would be greatly appreciated, you can have a look at livekit/agents#1084 and https://github.com/livekit/agents/pull/1214/files for an idea of how it should look

@rjp44
Copy link
Author

rjp44 commented Dec 30, 2024

Thanks, that PR and files look like they implement text modality only (pipeline agent) Gemini 2.0 via the Google OpenAI compat API and your existing OpenAI plugin.

What I'm looking to implement is the realtime interface.

As far as I can tell, this has no OpenAI compatibility API from Google so would need to be implemented from scratch targeting their WebSocket interface documented at: https://ai.google.dev/api/multimodal-live

You do have a branch that is being worked on by @jayeshp19 in agents: https://github.com/livekit/agents/tree/gemini-live-api that looks like it is taking this approach.

I'm not sure whether to wait for this to land and be ported here, or write a new plugin from scratch with just the realtime directory here.

@davidzhao
Copy link
Member

Gemini live example can be found here on Python. As mentioned, we do plan to port this over to Node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants