The openai()
function acts as an interface for interacting with the OpenAI API
through main tidyllm
verbs such as chat()
, embed()
, and
send_batch()
. It dynamically routes requests to OpenAI-specific functions
like openai_chat()
and openai_embedding()
based on the context of the call.
Arguments
- ...
Parameters to be passed to the appropriate OpenAI-specific function, such as model configuration, input text, or API-specific options.
- .called_from
An internal argument that specifies which action (e.g.,
chat
,embed
,send_batch
) the function is being invoked from. This argument is automatically managed and should not be modified by the user.