The perplexity()
function acts as a provider interface for interacting with the Perplexity API
through tidyllm
's chat()
verb.
It dynamically routes requests to Perplxeity-specific function. At the moment this is only
perplexity_chat()
perplexity(..., .called_from = NULL)
The result of the requested action, depending on the specific function invoked
(e.g., an updated LLMMessage
object for chat()
).
Parameters to be passed to the appropriate Perplexity-specific function, such as model configuration, input text, or API-specific options.
An internal argument specifying which action (e.g.,
chat
, embed
) the function is invoked from.
This argument is automatically managed by the tidyllm
verbs and should not be modified by the user.