Skip to contents

Thin wrapper around ellmer::chat_openai_compatible() configured for the Poppy endpoint.

Usage

poppy_chat(
  model = "Anthropic Claude Sonnet 4.5",
  credentials = get_poppy_api_key,
  ...
)

Arguments

model

Model name passed to ellmer::chat_openai_compatible(). Defaults to "Anthropic Claude Sonnet 4.5". To see available models, use poppy_models.

credentials

API key for Poppy. Defaults to get_poppy_api_key, a zero-argument function that reads the POPPY_API_KEY environment variable (compatible with ellmer::chat_openai_compatible() expectations).

...

Additional arguments forwarded to ellmer::chat_openai_compatible().

Value

An ellmer chat client.

See also

get_poppy_api_key() for the default credential source and ellmer::chat_openai_compatible() for full argument and functionality details.

Examples

if (FALSE) { # \dontrun{
  llm <- poppy_chat()
  llm$chat("Hi, who are you?")
} # }