% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/chat.R
\name{lms_chat_openresponses}
\alias{lms_chat_openresponses}
\title{Chat Completion via OpenResponses API}
\usage{
lms_chat_openresponses(
  model,
  input,
  instructions = NULL,
  host = "http://localhost:1234",
  logprobs = FALSE,
  simplify = TRUE,
  ...
)
}
\arguments{
\item{model}{Character. The loaded model name.}

\item{input}{Character. The user prompt.}

\item{instructions}{Character. Optional system instructions.}

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

\item{logprobs}{Logical. Whether to return token probabilities.}

\item{simplify}{Logical. If TRUE, parses output to text and dataframe. If
FALSE, returns raw list.}

\item{...}{Additional API arguments (e.g., top_logprobs, temperature).}
}
\value{
If \code{simplify = FALSE}, returns a list representing the raw JSON
response. Otherwise, returns a character string containing the generated
text. If \code{logprobs = TRUE}, returns an object of class
\code{lms_chat_result} incorporating both the text and probability data.
}
\description{
Direct interface to LM Studio's OpenResponses endpoint. Supports logprobs and
custom instructions.
}
