Provider function for interacting with any server that implements the OpenAI
Chat Completions wire format (vLLM, LiteLLM, Together, Anyscale, etc.).
Supports the chat() verb only.
chat_completions_chat(
.llm,
.api_url,
.api_key_env_var = NULL,
.model = "default",
...
)chat_completions(..., .called_from = NULL)
An updated LLMMessage object with the assistant's response appended.
An LLMMessage object containing the conversation history.
Base URL for the API endpoint (required).
Name of the environment variable holding the API key.
The model identifier to use (default: "default").
Additional parameters passed to the underlying chat function.
Internal routing argument; do not set manually.