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>"
Uses openai
to generate a message completion for a given prompt.
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>"
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.
JSON request payload to generate a message completion
The body is of type object
.
The generated message completion
The response is of type string
.
Was this page helpful?