chat_llm: Send message to LLM server

View source: R/connection.R

chat_llmR Documentation

Send message to LLM server

Description

This function sends a message to the LLM model and retrieves the result.

Usage

chat_llm(
  .message,
  .model = NULL,
  .temperature = 0,
  .max_tokens = 30000,
  .timeout = 300,
  .verbose = getOption("llmjoin.verbose", FALSE)
)

Arguments

.message

the message to send.

.model

character, LLM model to use. By default NULL (uses config value).

.temperature

OpenAI style randomness control (0~1), by default 0.

.max_tokens

Max tokens to spend.

.timeout

Max seconds to communicate with LLM.

.verbose

logical, print progress messages. Default getOption("llmjoin.verbose", FALSE).

Value

A character string with the LLM's response text.

Examples


  chat_llm("tell a joke.")


llmjoin documentation built on June 17, 2026, 1:08 a.m.