This endpoint generates the chat message response and saves it to its specified thread, which is a collection of messages to and from our Large Language Models

Log in to see full request history
Body Params

Attributes needed to create a chat message

string
required

Text of the chat message

string
Defaults to SCALE_LLAMA_2_13B_CHAT

Base model type that you would like to chat/query against for this thread. Note: if you pass in a model that is not allowed in your organization, this will fail.

string
required

Unique ID for the workspace that this thread belongs to.

string

Unique ID for a new or existing thread that holds the chat messages. If not specified, a new thread will be created with this message being the first message in the thread.

datasets
array of strings

Unique IDs for the datasets that you would like to chat/query against. These datasets must be in the workspace that you specified, and these will serve as added context to the model responses. If no datasets are specified, the model will still respond, but the responses will not use any of your documents as sources.

datasets
Responses

400

Bad Request

401

Unauthorized Request

403

Forbidden Request

500

Internal Server Error

Language
Credentials
:
Click Try It! to start a request and see the response here! Or choose an example:
application/json