Provider: A chatbot provider

ProviderR Documentation

A chatbot provider

Description

A Provider captures the details of one chatbot service/API. This captures how the API works, not the details of the underlying large language model. Different providers might offer the same (open source) model behind a different API.

Usage

Provider(base_url = stop("Required"), extra_args = list())

Arguments

base_url

The base URL for the API.

extra_args

Arbitrary extra arguments to be included in the request body.

Details

To add support for a new backend, you will need to subclass Provider (adding any additional fields that your provider needs) and then implement the various generics that control the behavior of each provider.

Value

An S7 Provider object.

Examples

Provider(base_url = "https://cool-models.com")

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