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()
Arguments
- ...
Parameters to be passed to the appropriate Perplexity-specific function, such as model configuration, input text, or API-specific options.
- .called_from
An internal argument specifying which action (e.g.,
chat
,embed
) the function is invoked from. This argument is automatically managed by thetidyllm
verbs and should not be modified by the user.
Value
The result of the requested action, depending on the specific function invoked
(e.g., an updated LLMMessage
object for chat()
).