Skip to content

Instantly share code, notes, and snippets.

@simonpcouch
Last active November 24, 2025 10:13
Show Gist options
  • Select an option

  • Save simonpcouch/a2fb57b07a567aad4c3206cc9da7666f to your computer and use it in GitHub Desktop.

Select an option

Save simonpcouch/a2fb57b07a567aad4c3206cc9da7666f to your computer and use it in GitHub Desktop.
Connecting to Gemini 3 Pro with ellmer

Gemini 3 Pro with ellmer

In case folks want to try Gemini 3 Pro with ellmer, the package required some changes to work with a change in Gemini's API. A patch can be installed with pak::pak("tidyverse/ellmer"), then the connection code is:

gemini_3 <- chat_google_gemini(model = "gemini-3-pro-preview")

You might want to turn down the reasoning for some tasks—it takes a good while:

gemini_3 <- chat_google_gemini(
  model = "gemini-3-pro-preview",
  api_args = list(
    generationConfig = list(thinkingConfig = list(thinkingLevel = "low"))
  )
)

If you want to try it out with side::kick(), an experimental coding agent for RStudio, install with pak::pak("simonpcouch/side") and then:

side::kick(gemini_3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment