tidychatmodels icon indicating copy to clipboard operation
tidychatmodels copied to clipboard

Add gemini support

Open AlbertRapp opened this issue 1 year ago • 5 comments

https://ai.google.dev/docs/gemini_api_overview?hl=de#curl

AlbertRapp avatar Mar 08 '24 22:03 AlbertRapp

Hi Albert,

just saw your package discussed on R-bloggers. Looks great! If you still plan to include Gemini support, this code might be helpful:

https://github.com/skranz/gemini_ex/blob/main/scripts/gemini_tools.R#L48

Best, Sebastian

skranz avatar Jun 21 '24 13:06 skranz

Hello, I simply express interest in adding support to gemini because as of now (beginning of February 2025), it is the only free (as in beer) API, though you need to accept that Google will use your data to improve the model.

larry77 avatar Feb 08 '25 20:02 larry77

Created now a small R package to interface gemini: https://github.com/skranz/rgemini (interface might change though, in particular the function to specify structured responses).

skranz avatar Feb 17 '25 14:02 skranz

Thank you. I will have a look at that, but honestly I do not want to have a dedicated package for each LLM.

@AlbertRapp : as an aside, what is the relation between tidychat and ellmer ( https://ellmer.tidyverse.org/ )? Do they both have the same goal? Thanks

larry77 avatar Feb 17 '25 14:02 larry77

Hi everyone 👋🏼 sorry about the long wait. This package is kind of stale now as it is superseded by {ellmer}. I think the ellmer package has a similarly easy syntax and offers more feature. I'm currently writing about ellmer at air.albert-rapp.de

AlbertRapp avatar Feb 17 '25 15:02 AlbertRapp