agents icon indicating copy to clipboard operation
agents copied to clipboard

google gemini plugin

Open makerGeek opened this issue 1 year ago • 6 comments

Hi,

I'm trying to build an assistant with google gemini as LLM. Are there any guidelines, docs or examples to follow on how to build a livekit-gemini plugin ?

Thanks

makerGeek avatar Jul 21 '24 14:07 makerGeek

Hey! We'd love this as a contribution. Check out the openai plugin for reference: https://github.com/livekit/agents/blob/main/livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py

We also have the minimal plugin: https://github.com/livekit/agents/tree/main/livekit-plugins/livekit-plugins-minimal that shows what is needed for the package

keepingitneil avatar Jul 25 '24 19:07 keepingitneil

Thanks! I created a Google llm client inspired by the openai one (Google supports almost the same schema of openai so that wasn't complicated). It works for the chat but not for function calling. Would you like me to make a PR so you can review it and eventually assist me on it?

On Thu, Jul 25, 2024, 21:35 Neil Dwyer @.***> wrote:

Hey! We'd love this as a contribution. Check out the openai plugin for reference: https://github.com/livekit/agents/blob/main/livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/llm.py

We also have the minimal plugin: https://github.com/livekit/agents/tree/main/livekit-plugins/livekit-plugins-minimal that shows what is needed for the package

— Reply to this email directly, view it on GitHub https://github.com/livekit/agents/issues/456#issuecomment-2251261242, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUJOPWMN74BKFTQVZBY5T3ZOFHR3AVCNFSM6AAAAABLG4QFXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGI3DCMRUGI . You are receiving this because you authored the thread.Message ID: @.***>

makerGeek avatar Jul 28 '24 22:07 makerGeek

Hey, yes, please make a PR. We will be happy to help integrate the function-calling stuff!

theomonnom avatar Aug 01 '24 20:08 theomonnom

@makerGeek Were you still planning to make a PR for Google LLM plugin?

If not, then I can work on this and open a PR.

AphinityApp avatar Aug 29 '24 18:08 AphinityApp

Hi Sorry for the delay. I can push the code tomorrow and you can have a look and eventually fix any broken parts. Does that work for you?

makerGeek avatar Aug 29 '24 18:08 makerGeek

Hi Sorry for the delay. I can push the code tomorrow and you can have a look and eventually fix any broken parts. Does that work for you?

Yes, sure no problem. Looking forward to your PR! Thanks

AphinityApp avatar Aug 30 '24 16:08 AphinityApp