% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api_chat_completions.R, R/api_openai.R
\name{openai}
\alias{openai}
\title{OpenAI Provider Function}
\usage{
openai(..., .called_from = NULL)

openai(..., .called_from = NULL)
}
\arguments{
\item{...}{Parameters passed to the appropriate OpenAI-specific function.}

\item{.called_from}{Internal routing argument; do not set manually.}
}
\value{
The result of the requested action, depending on the specific function invoked
(e.g., an updated \code{LLMMessage} object for \code{chat()}, or a matrix for \code{embed()}).

Result of the requested action.
}
\description{
The \code{openai()} function acts as an interface for interacting with the OpenAI API
through main \code{tidyllm} verbs such as \code{chat()}, \code{embed()}, and
\code{send_batch()}. It dynamically routes requests to OpenAI-specific functions
like \code{openai_chat()} and \code{openai_embedding()} based on the context of the call.
}
