Process a vector of inputs sequentially through LM Studio.
lms_chat_batch(
model,
inputs,
system_prompt = NULL,
format = c("vector", "list", "data.frame"),
host = "http://localhost:1234",
simplify = TRUE,
quiet = FALSE,
...
)The return type depends on the format argument:
"vector": A character vector of responses. This format is only supported if simplify = TRUE and logprobs = FALSE.
"list": A list where each element is the response corresponding to the provided input.
"data.frame": A data.frame containing input and output columns. If logprobs = TRUE, an additional list-column named logprobs is included.
Character. The loaded model name.
Character vector. The prompts to process.
Character. Optional system prompt.
Character. Output format: "vector", "list", or "data.frame".
Character. Server URL.
Logical. If TRUE, parses outputs.
Logical. Whether to suppress the progress bar.
Additional arguments passed to lms_chat.