Search

Represents a chat completion response returned by model, based on the provided input.

  • NameidTypestringDescription

    A unique identifier for the chat completion.

  • NameobjectTypestringDescription

    The object type, which is always search.completion.

  • NamecreatedTypestringDescription

    A unix timestamp of when the chat completion was created.

  • NamechoicesTypearrayDescription

    A list of chat completion choices. Can be more than one if n is greater than 1.

  • Namechoices[].indexTypeintegerDescription

    The index of the choice in the list of choices.

  • Namechoices[].messageTypeobjectDescription

    A chat completion message generated by the model.

  • Namechoices[].message.roleTypestringDescription

    The role of the author of this message.

  • Namechoices[].message.contentTypestring or nullDescription

    The contents of the message.

  • Namechoices[].finish_reasonTypestringDescription

    The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if 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.

  • NameidTypestringDescription

    A unique identifier for the chat completion.

  • NameobjectTypestringDescription

    The object type, which is always search.completion.

  • NamecreatedTypestringDescription

    A unix timestamp of when the chat completion was created.

  • NamechoicesTypearrayDescription

    A list of chat completion choices. Can be more than one if n is greater than 1.

  • Namechoices[].indexTypeintegerDescription

    The index of the choice in the list of choices.

  • Namechoices[].deltaTypeobjectDescription

    A chat completion delta generated by streamed model responses.

  • Namechoices[].delta.roleTypestringDescription

    The role of the author of this message.

  • Namechoices[].delta.contentTypestring or nullDescription

    The contents of the chunk message.

  • Namechoices[].finish_reasonTypestring or nullDescription

    The reason the model stopped generating tokens. This will be stop if the model hit a natural stop point or a provided stop sequence, length if 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.

  • role string Required

    • The role of the messages author. One of system, user or assistant.

  • content string Required

    • The contents of the message. content is 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 eventsarrow-up-right 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