Perform online completion with streaming response.
Request payload is an OnlineRequest
object. Returns a stream of LLMChunk
objectsfollowed by an
LLMReply` object.
POST
/
v1
/
sutra-online
/
completion
Authorizations
authorization
string
headerrequiredBody
application/json
User input for an online query.
userInput
string
requiredA 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>
requiredAvailable options:
LLMChunk
, LLMReply
isFinal
boolean
Indicates if this is the final chunk.