Direct interface to LM Studio's OpenResponses endpoint. Supports logprobs and custom instructions.
lms_chat_openresponses(
model,
input,
instructions = NULL,
host = "http://localhost:1234",
logprobs = FALSE,
simplify = TRUE,
...
)If simplify = FALSE, returns a list representing the raw JSON
response. Otherwise, returns a character string containing the generated
text. If logprobs = TRUE, returns an object of class
lms_chat_result incorporating both the text and probability data.
Character. The loaded model name.
Character. The user prompt.
Character. Optional system instructions.
Character. Server URL.
Logical. Whether to return token probabilities.
Logical. If TRUE, parses output to text and dataframe. If FALSE, returns raw list.
Additional API arguments (e.g., top_logprobs, temperature).