curl --request POST \
--url https://api.example.com/chatbots/query-single-message/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query_str": "<string>",
"assistant_id": "<string>",
"conversation_id": "<string>",
"image_str": "<string>",
"completion_kwargs": {}
}
'{
"query_str": "<string>",
"response": "<string>",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"model_type": "truestate"
}
}Handles chatbot queries with a single user message, without conversation history.
curl --request POST \
--url https://api.example.com/chatbots/query-single-message/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query_str": "<string>",
"assistant_id": "<string>",
"conversation_id": "<string>",
"image_str": "<string>",
"completion_kwargs": {}
}
'{
"query_str": "<string>",
"response": "<string>",
"usage": {
"input_tokens": 123,
"output_tokens": 123,
"model_type": "truestate"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.