Add gemini support
https://ai.google.dev/docs/gemini_api_overview?hl=de#curl
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
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.
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).
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
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