Learn R Programming

tidyllm (version 0.5.1)

chatgpt: Alias for the OpenAI Provider Function

Description

The chatgpt function is an alias for the openai() provider function. It provides a convenient way to interact with the OpenAI API for tasks such as sending chat messages, generating embeddings, and handling batch operations using tidyllm verbs like chat(), embed(), and send_batch().

Usage

chatgpt(..., .called_from = NULL)

chatgpt(..., .called_from = NULL)

Value

The result of the requested action, depending on the specific function invoked (e.g., an updated LLMMessage object for chat(), or a matrix for embed()).

Arguments

...

Parameters passed to the appropriate OpenAI-specific function.

.called_from

Internal routing argument; do not set manually.