chattr: Submits prompt to LLM

View source: R/chattr.R

chattrR Documentation

Submits prompt to LLM

Description

Submits prompt to LLM

Usage

chattr(prompt = NULL, preview = FALSE, prompt_build = TRUE, stream = NULL)

Arguments

prompt

Request to send to LLM. Defaults to NULL

preview

Primarily used for debugging. It indicates if it should send the prompt to the LLM (FALSE), or if it should print out the resulting prompt (TRUE)

prompt_build

Include the context and additional prompt as part of the request

stream

To output the response from the LLM as it happens, or wait until the response is complete. Defaults to TRUE.

Value

The output of the LLM to the console, document or script.

Examples

library(chattr)
chattr_use("test")
chattr("hello")
chattr("hello", preview = TRUE)


chattr documentation built on Sept. 11, 2024, 8:46 p.m.