tests/testthat/_snaps/provider-gemini.md

defaults are reported

Code
  . <- chat_gemini()
Message
  Using model = "gemini-2.0-flash".

all tool variations work

Code
  chat$chat("Great. Do it again.")
Condition
  Error in `FUN()`:
  ! Can't use async tools with `$chat()` or `$stream()`.
  i Async tools are supported, but you must use `$chat_async()` or `$stream_async()`.

can use images

Code
  . <- chat$chat("What's in this image?", image_remote)
Condition
  Error in `method(as_json, list(ellmer::ProviderGemini, ellmer::ContentImageRemote))`:
  ! Gemini doesn't support remote images


Try the ellmer package in your browser

Any scripts or data that you put into this service are public.

ellmer documentation built on April 4, 2025, 3:53 a.m.