POST
/
api
/
message
/
generate_message_completions
Generate Message Completions
curl --request POST \
  --url https://api.trieve.ai/api/message/generate_message_completions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TR-Dataset: <tr-dataset>' \
  --data '{
  "system_message": "<string>",
  "user_message": "<string>"
}'
"<string>"

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string<uuid>
required

The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.

Body

application/json

JSON request payload to generate a message completion

system_message
string
required

The system message to use for the message completion.

user_message
string
required

The user message to use for the message completion.

Response

The generated message completion

The response is of type string.