agents icon indicating copy to clipboard operation
agents copied to clipboard

Gemini real-time

Open Shandelier opened this issue 1 year ago • 21 comments

Any plans for implementing Gemini real-time API to Agents?

Shandelier avatar Dec 12 '24 11:12 Shandelier

+1 for this

jadams777 avatar Dec 12 '24 13:12 jadams777

+1

finlayschlieper avatar Dec 12 '24 17:12 finlayschlieper

we are working on it. stay tuned!

davidzhao avatar Dec 12 '24 22:12 davidzhao

+1 and thank you @davidzhao looking forward to it. something interesting to know is it seems they have a limit of

3 concurrent sessions per API key

is there guidance of how to queue up or rotate api keys? the rates seem pretty low for an actual application

pixelcatgg avatar Dec 13 '24 18:12 pixelcatgg

If everyone enters their own api key for demo, it should work fine. Just like openai key requirement at the demo site.

mpisat avatar Dec 14 '24 07:12 mpisat

Which demo?

jadams777 avatar Dec 14 '24 07:12 jadams777

Which demo?

https://playground.livekit.io/ which is outdated I think?

mpisat avatar Dec 14 '24 07:12 mpisat

+1 and thank you @davidzhao looking forward to it. something interesting to know is it seems they have a limit of

3 concurrent sessions per API key

is there guidance of how to queue up or rotate api keys? the rates seem pretty low for an actual application

There might be some workarounds to rotate the keys and bypass API usage limits, but I’m not sure if that complies with Google's policies. Since this is an experimental model, I strongly recommend against using it in production for now. The rates will likely increase once the stable version is released.

OrkhanGG avatar Dec 15 '24 07:12 OrkhanGG

Any update here and when it will support video input?

smxthereisonlyone avatar Dec 18 '24 15:12 smxthereisonlyone

Gemini 2 looks EXTREMELY impressive, and our early tests are showing that it's way smarter than OpenAI in our particular business domain. I've been asked to shift over to Gemini MultiModal for my livekit development. So I'm really looking forward to this support...

arthurblake avatar Dec 20 '24 14:12 arthurblake

+1, looking forward to it

laag-deploy avatar Dec 20 '24 18:12 laag-deploy

+1, looking forward to it

sajithlaldev avatar Dec 21 '24 04:12 sajithlaldev

@davidzhao any PR for this ?

irux avatar Jan 05 '25 19:01 irux

+1

omer-dtc avatar Jan 06 '25 17:01 omer-dtc

This came out with Agents for Python 0.12.6 Release on New Years Eve. The demo is here: https://github.com/livekit/agents/blob/main/examples/multimodal-agent/gemini_agent.py I got it to work, although I am having trouble figuring out some basic things, like how to send an initial message from the agent when it joins the room

arthurblake avatar Jan 06 '25 19:01 arthurblake

@arthurblake Any chance you could share with us how to get the demo app running?

jadams777 avatar Jan 07 '25 13:01 jadams777

@arthurblake Any chance you could share with us how to get the demo app running?

Nothing special, it worked as is. If you are having specific problems you should ask on the slack channel.

arthurblake avatar Jan 07 '25 14:01 arthurblake

@arthurblake yes but it's missing support for video streams.

omer-dtc avatar Jan 07 '25 20:01 omer-dtc

@arthurblake did you notice that the agent produces much less logs somehow compared to the OpenAI realtime agent, e.g. when calling functions? Also it seems to have quite high error rate for me...

snipd-min avatar Jan 08 '25 10:01 snipd-min

Yes seems like they rushed it out. I did not try to use video because my main use case is for sip calls / audio only. Hopefully subsequent versions will have these issues fixed. Best to discuss on slack.

arthurblake avatar Jan 08 '25 14:01 arthurblake