The goal of elmer is to provide a user friendly wrapper over the most common APIs for calling llm’s. Major design goals include support for streaming and making it easy to register and call R functions.
You can install the development version of elmer from GitHub with:
# install.packages("pak")
pak::pak("hadley/elmer")To use elmer, you need an OpenAI API key. You can get one from your
developer console. Then
you should save that value as the OPENAI_API_KEY environment variable
in your ~/.Renviron (an easy way to open that file is to call
usethis::use_renviron()).