POST
/
v1
/
sutra-online
/
completion

Authorizations

authorization
string
headerrequired

Body

application/json

User input for an online query.

userInput
string
required

A query or question from the user.

previousQuestion
string

The question before the current question.

previousAnswer
string

The answer to the previous question.

style
object

Online response style.

searchLocation
object

A search location. Used for input to queries returned by $ref /sutra/online/getLocation.

Response

200 - application/x-ndjson

A chunk of JSON objects.

typeName
enum<string>
required
Available options:
LLMChunk,
LLMReply
isFinal
boolean

Indicates if this is the final chunk.