Learn R Programming

tidyllm (version 0.5.1)

openrouter: OpenRouter Provider Function

Description

The openrouter() function provides access to hundreds of AI models from different providers through the OpenRouter API, using a single OpenAI-compatible interface.

Usage

openrouter(..., .called_from = NULL)

Value

The result of the requested action (e.g., an updated LLMMessage for chat()).

Arguments

...

Parameters passed to the appropriate OpenRouter-specific function.

.called_from

An internal argument specifying which verb invoked this function. Managed automatically by tidyllm verbs; do not set manually.