tests/testthat/_snaps/provider-aws.md

handles errors

Code
  chat$chat("What is 1 + 1?", echo = FALSE)
Condition
  Error in `req_perform()`:
  ! HTTP 400 Bad Request.
  i STRING_VALUE cannot be converted to Float
Code
  chat$chat("What is 1 + 1?", echo = TRUE)
Condition
  Error in `req_perform_connection()`:
  ! HTTP 400 Bad Request.
  i STRING_VALUE cannot be converted to Float

defaults are reported

Code
  . <- chat_aws_bedrock()
Message
  Using model = "us.anthropic.claude-sonnet-4-6".

can use images

Code
  . <- chat$chat("What's in this image?", image_remote)
Condition
  Error in `method(as_json, list(ellmer::ProviderAWSBedrock, ellmer::ContentImageRemote))`:
  ! Bedrock 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 July 14, 2026, 1:07 a.m.