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

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

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

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

\item{simplify}{Logical. If TRUE, parses output to text.}

\item{...}{Additional API arguments.}
}
\value{
If \code{simplify = FALSE}, returns a list representing the raw JSON
response. If \code{simplify = TRUE}, returns a character string containing
the model's text output.
}
\description{
Direct interface to LM Studio's v1 Native endpoint. Optimized for stateful chats and hardware control.
}
