Set up the AI provider that codriver uses to generate and edit R code and comments. The configuration is saved locally and validated immediately by making a test call to the provider.
Arguments
- name
Character. Provider name passed to
ellmer::chat(), in the form"provider"or"provider/model". Supported providers are listed on https://ellmer.tidyverse.org/index.html#providers.- ...
Named arguments passed to the ellmer constructor, such as
modelorbase_url.
Value
Returns TRUE invisibly on successful provider configuration.
Returns FALSE invisibly if RStudio is not available or provider
validation fails.
Details
Pass any arguments supported by the underlying ellmer::chat() constructor
directly via name and ....
If no keyboard shortcut is registered for codriver, the function offers to
register the default shortcut Ctrl+/. Shortcut registration is strongly
recommended but can be skipped or changed later via Tools >
Modify Keyboard Shortcuts in RStudio.
See also
vignette("getting-started-with-codriver")for extended information on configuring codrivervignette("start-using-codriver")for an overview of modes and result presentationellmer::chat()and supported providers at https://ellmer.tidyverse.org/index.html#providers
