% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chat.R
\name{lms_chat_batch}
\alias{lms_chat_batch}
\title{Batch Chat Completion with LM Studio}
\usage{
lms_chat_batch(
  model,
  inputs,
  system_prompt = NULL,
  format = c("vector", "list", "data.frame"),
  host = "http://localhost:1234",
  simplify = TRUE,
  quiet = FALSE,
  ...
)
}
\arguments{
\item{model}{Character. The loaded model name.}

\item{inputs}{Character vector. The prompts to process.}

\item{system_prompt}{Character. Optional system prompt.}

\item{format}{Character. Output format: "vector", "list", or "data.frame".}

\item{host}{Character. Server URL.}

\item{simplify}{Logical. If TRUE, parses outputs.}

\item{quiet}{Logical. Whether to suppress the progress bar.}

\item{...}{Additional arguments passed to \code{lms_chat}.}
}
\value{
The return type depends on the \code{format} argument:
\itemize{
\item \code{"vector"}: A character vector of responses. This format is only supported if \code{simplify = TRUE} and \code{logprobs = FALSE}.
\item \code{"list"}: A list where each element is the response corresponding to the provided input.
\item \code{"data.frame"}: A data.frame containing \code{input} and \code{output} columns. If \code{logprobs = TRUE}, an additional list-column named \code{logprobs} is included.
}
}
\description{
Process a vector of inputs sequentially through LM Studio.
}
