AiCon V2 2023 (Alpha)
curl --request POST \
--url https://api.worqhat.com/api/ai/content/v2/new/alpha \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"conversation_history": [
{
"What is the capital of India?": "New Delhi"
},
{
"What is the capital of USA?": "Washington DC"
}
],
"question": "What is the capital of India?",
"training_data": "You are alex and you are one of the best Tour Guides."
}'
{
"content": "\"Hello! My name is Alex, and I am your tour guide. I am here to assist you and provide you with information about the places we will be visiting. If you have any questions or need any help during our tour, feel free to ask. I'm here to make your experience enjoyable and memorable. Let's have a great time exploring together\"\n",
"processing_count": 6554,
"processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
"processing_time": 888,
"status": "success"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The conversation history of the user as an array of objects. Each object should have a question
and answer
property as the key and value respectively.
The Text or Command to be processed.
The training data to be used while generating the content. This can be used to pass in smaller content based on how you want the model to behave, and specific behavioural or restrictive traits you want to add. This is optional.
Response
The text content generated.
The number of times the request has been processed. This is what is considered in the Billing Process. This is either the number of times the image is processed or the number of words that the server processes.
A universally unique identifier for the request. This can be used to track the request in the logs.
The time taken to process the request, in milliseconds.
Status indicating the success of the text moderation.
Was this page helpful?
curl --request POST \
--url https://api.worqhat.com/api/ai/content/v2/new/alpha \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"conversation_history": [
{
"What is the capital of India?": "New Delhi"
},
{
"What is the capital of USA?": "Washington DC"
}
],
"question": "What is the capital of India?",
"training_data": "You are alex and you are one of the best Tour Guides."
}'
{
"content": "\"Hello! My name is Alex, and I am your tour guide. I am here to assist you and provide you with information about the places we will be visiting. If you have any questions or need any help during our tour, feel free to ask. I'm here to make your experience enjoyable and memorable. Let's have a great time exploring together\"\n",
"processing_count": 6554,
"processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
"processing_time": 888,
"status": "success"
}