Search
Represents a chat completion response returned by model, based on the provided input.
Name
idTypestringDescriptionA unique identifier for the chat completion.
Name
objectTypestringDescriptionThe object type, which is always
search.completion.Name
createdTypestringDescriptionA unix timestamp of when the chat completion was created.
Name
choicesTypearrayDescriptionA list of chat completion choices. Can be more than one if
nis greater than 1.Name
choices[].indexTypeintegerDescriptionThe index of the choice in the list of choices.
Name
choices[].messageTypeobjectDescriptionA chat completion message generated by the model.
Name
choices[].message.roleTypestringDescriptionThe role of the author of this message.
Name
choices[].message.contentTypestring or nullDescriptionThe contents of the message.
Name
choices[].finish_reasonTypestringDescriptionThe reason the model stopped generating tokens. This will be
stopif the model hit a natural stop point or a provided stop sequence,lengthif the maximum number of tokens specified in the request was reached.
The search completion object
Represents a streamed chunk of a search completion response returned by model, based on the provided input.
Name
idTypestringDescriptionA unique identifier for the chat completion.
Name
objectTypestringDescriptionThe object type, which is always
search.completion.Name
createdTypestringDescriptionA unix timestamp of when the chat completion was created.
Name
choicesTypearrayDescriptionA list of chat completion choices. Can be more than one if
nis greater than 1.Name
choices[].indexTypeintegerDescriptionThe index of the choice in the list of choices.
Name
choices[].deltaTypeobjectDescriptionA chat completion delta generated by streamed model responses.
Name
choices[].delta.roleTypestringDescriptionThe role of the author of this message.
Name
choices[].delta.contentTypestring or nullDescriptionThe contents of the chunk message.
Name
choices[].finish_reasonTypestring or nullDescriptionThe reason the model stopped generating tokens. This will be
stopif the model hit a natural stop point or a provided stop sequence,lengthif the maximum number of tokens specified in the request was reached.
The search completion chunk object
Creates a model response for the given search conversation.
POST https://api.Slier.ai/v1/search/completions
POST https://api.Slier.ai/v2/search/completions
Available parameters
messages array Required A list of messages comprising the conversation so far.
rolestring RequiredThe role of the messages author. One of
system,userorassistant.
contentstring RequiredThe contents of the message.
contentis required for all messages.
stream boolean or null Optional Defaults to false If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message.
Example Request
POST/v1/search/completions
The chat completion object
Contents Filtered
Last updated